Skip to content

Commit f5a0586

Browse files
committed
Prevent incorrect error messages in UNION queries
Signed-off-by: Deven Bansod <[email protected]>
1 parent fcfed04 commit f5a0586

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Utils/Query.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,8 @@ public static function getClauseStartOffset($statement, $list, $clause)
831831
&& ($clause === $token->value)
832832
) {
833833
return $i;
834+
} elseif ($token->value === 'UNION') {
835+
return -1;
834836
}
835837
}
836838
}

0 commit comments

Comments
 (0)