[jOOQ/jOOQ#11107] Parse 3-argument Oracle INSTR() function

This commit is contained in:
Lukas Eder 2021-01-23 10:37:04 +01:00
parent cfe0e4937e
commit 470d54272b

View File

@ -8974,8 +8974,10 @@ final class ParserContext {
Field<String> f1 = (Field) parseField(S);
parse(',');
Field<String> f2 = (Field) parseField(S);
Field<Integer> f3 = parseIf(',') ? (Field) parseField(N) : null;
parse(')');
return DSL.position(f1, f2);
return f3 == null ? DSL.position(f1, f2) : DSL.position(f1, f2, f3);
}
return null;