Skip to content

Commit

Permalink
Prevent incorrect error messages in UNION queries
Browse files Browse the repository at this point in the history
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
  • Loading branch information
devenbansod committed Nov 20, 2016
1 parent fcfed04 commit f5a0586
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Utils/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ public static function getClauseStartOffset($statement, $list, $clause)
&& ($clause === $token->value)
) {
return $i;
} elseif ($token->value === 'UNION') {
return -1;
}
}
}
Expand Down

0 comments on commit f5a0586

Please sign in to comment.