[jOOQ/jOOQ#12838] Support parsing DATABASE() as synonym for
CURRENT_CATALOG() or CURRENT_DATABASE()
This commit is contained in:
parent
96bcd0770f
commit
a14383381b
@ -8154,7 +8154,9 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
if ((parseFunctionNameIf("DB_NAME") && parseEmptyParens()))
|
||||
if ((parseFunctionNameIf("DATABASE") && parseEmptyParens()))
|
||||
return currentCatalog();
|
||||
else if ((parseFunctionNameIf("DB_NAME") && parseEmptyParens()))
|
||||
return currentCatalog();
|
||||
else if ((parseFunctionNameIf("DBINFO") && parse('(') && parseStringLiteral("dbname") != null && parse(')')))
|
||||
return currentCatalog();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user