File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1966,7 +1966,11 @@ impl Parser {
1966
1966
1967
1967
// Check if the recently consumed '(' started a derived table, in which case we've
1968
1968
// parsed the subquery, followed by the closing ')', and the alias of the derived
1969
- // table. In the example above this is case (3), or another nested join (2).
1969
+ // table. In the example above this is case (3).
1970
+ //
1971
+ // A parsing error from `parse_derived_table_factor` indicates that the '(' we've
1972
+ // recently consumed does not start a derived table (cases 1, 2, or 4). Ignore the
1973
+ // error and back up to where we after the opening '('.
1970
1974
if let Some ( parsed) =
1971
1975
self . maybe_parse ( |parser| parser. parse_derived_table_factor ( NotLateral ) )
1972
1976
{
You can’t perform that action at this time.
0 commit comments