Distinguish between tables and nullary functions in FROM (#506)

This commit is contained in:
Riccardo Azzolini 2022-05-25 22:01:13 +02:00 committed by GitHub
parent cd66034a4a
commit 901f5b974f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 39 additions and 29 deletions

View file

@ -3623,9 +3623,9 @@ impl<'a> Parser<'a> {
let name = self.parse_object_name()?;
// Postgres, MSSQL: table-valued functions:
let args = if self.consume_token(&Token::LParen) {
self.parse_optional_args()?
Some(self.parse_optional_args()?)
} else {
vec![]
None
};
let alias = self.parse_optional_table_alias(keywords::RESERVED_FOR_TABLE_ALIAS)?;
// MSSQL-specific table hints: