mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-02 12:17:21 +00:00
Add a comment about RESERVED_FOR_TABLE_ALIAS to parse_table_and_joins
This commit is contained in:
parent
eb3450dd51
commit
a37ba089ec
1 changed files with 4 additions and 0 deletions
|
@ -1611,6 +1611,10 @@ impl Parser {
|
|||
|
||||
pub fn parse_table_and_joins(&mut self) -> Result<TableWithJoins, ParserError> {
|
||||
let relation = self.parse_table_factor()?;
|
||||
|
||||
// Note that for keywords to be properly handled here, they need to be
|
||||
// added to `RESERVED_FOR_TABLE_ALIAS`, otherwise they may be parsed as
|
||||
// a table alias.
|
||||
let mut joins = vec![];
|
||||
loop {
|
||||
let join = if self.parse_keyword("CROSS") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue