[jOOQ/jOOQ#12645] Parser should support PostgreSQL date part syntaxes with explicit type casts

This commit is contained in:
Lukas Eder 2021-11-23 14:09:25 +01:00
parent ab03dda749
commit b2465ca45b

View File

@ -10106,6 +10106,11 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
else if (string)
parse('\'');
// [#12645] In PostgreSQL, function based indexes tend to cast the
// date part to a type explicitly
if (parseIf("::"))
parseDataType();
return result;
}