Support postgres style CREATE FUNCTION in GenericDialect (#1159)

This commit is contained in:
Andrew Lamb 2024-03-01 13:43:29 -05:00 committed by GitHub
parent a511c47bd0
commit 9db9d22480
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View file

@ -3317,7 +3317,7 @@ impl<'a> Parser<'a> {
return_type: None,
params,
})
} else if dialect_of!(self is PostgreSqlDialect) {
} else if dialect_of!(self is PostgreSqlDialect | GenericDialect) {
let name = self.parse_object_name(false)?;
self.expect_token(&Token::LParen)?;
let args = if self.consume_token(&Token::RParen) {