[jOOQ/jOOQ#12700] Single element IN predicate without parentheses uses

wrong operator precedence
This commit is contained in:
Lukas Eder 2021-12-06 15:46:16 +01:00
parent 9e940cccc6
commit c76fdce133

View File

@ -6426,8 +6426,8 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
// [#12691] Some dialects support A IN B syntax without parentheses for single element in lists
if (isField && !peek('(')) {
result = not
? ((Field) left).notIn(parseField())
: ((Field) left).in(parseField());
? ((Field) left).notIn(parseConcat())
: ((Field) left).in(parseConcat());
}
else {
parse('(');