mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-15 08:19:08 +00:00
Support postgres style CREATE FUNCTION
in GenericDialect
(#1159)
This commit is contained in:
parent
a511c47bd0
commit
9db9d22480
3 changed files with 10 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue