Add a comment about RESERVED_FOR_TABLE_ALIAS to parse_table_and_joins

This commit is contained in:
Nickolay Ponomarev 2019-06-17 10:55:12 +03:00
parent eb3450dd51
commit a37ba089ec

View file

@ -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") {