mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-19 05:30:19 +00:00
Distinguish between tables and nullary functions in FROM (#506)
This commit is contained in:
parent
cd66034a4a
commit
901f5b974f
9 changed files with 39 additions and 29 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue