Skip to content

Commit a37ba08

Browse files
committed
Add a comment about RESERVED_FOR_TABLE_ALIAS to parse_table_and_joins
1 parent eb3450d commit a37ba08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sqlparser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,10 @@ impl Parser {
16111611

16121612
pub fn parse_table_and_joins(&mut self) -> Result<TableWithJoins, ParserError> {
16131613
let relation = self.parse_table_factor()?;
1614+
1615+
// Note that for keywords to be properly handled here, they need to be
1616+
// added to `RESERVED_FOR_TABLE_ALIAS`, otherwise they may be parsed as
1617+
// a table alias.
16141618
let mut joins = vec![];
16151619
loop {
16161620
let join = if self.parse_keyword("CROSS") {

0 commit comments

Comments
 (0)