Permalink
Browse files

Fix locations of QLC too_many_joins errors

Full locations with line and columns crashed the parse transform.
  • Loading branch information...
1 parent 22027c4 commit 5e2c6bf27bb649c5faf89edf3f0e4af74dae2687 @nox nox committed Aug 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/stdlib/src/qlc_pt.erl
@@ -641,12 +641,12 @@ join_kind(Qs, LcL, AllIVs, Dependencies, State) ->
if
EqualColsN =/= []; MatchColsN =/= [] ->
{[],
- [{get(?QLC_FILE),[{abs(LcL),?APIMOD,too_complex_join}]}]};
+ [{get(?QLC_FILE),[{abs_loc(LcL),?APIMOD,too_complex_join}]}]};
EqualCols2 =:= [], MatchCols2 =:= [] ->
{[], []};
length(Tables) > 2 ->
{[],
- [{get(?QLC_FILE),[{abs(LcL),?APIMOD,too_many_joins}]}]};
+ [{get(?QLC_FILE),[{abs_loc(LcL),?APIMOD,too_many_joins}]}]};
EqualCols2 =:= MatchCols2 ->
{EqualCols2, []};
true ->

0 comments on commit 5e2c6bf

Please sign in to comment.