MXS-3585 Fix problem

This commit is contained in:
Johan Wikman
2021-06-02 13:50:41 +03:00
committed by Markus Mäkelä
parent 1185098e41
commit fa83259c62
2 changed files with 25 additions and 11 deletions

View File

@ -1592,10 +1592,8 @@ table_factor(A) ::= nm(X) DOT nm(Y) as_opt id(Z). {
A = sqlite3SrcListAppendFromTerm(pParse, 0, &X, &Y, &Z, 0, 0, 0);
}
table_factor(A) ::= LP oneselect(S) RP as_opt id. {
maxscaleCollectInfoFromSelect(pParse, S, 1);
sqlite3SelectDelete(pParse->db, S);
A = 0;
table_factor(A) ::= LP oneselect(S) RP as_opt id(Z). {
A = sqlite3SrcListAppendFromTerm(pParse, 0, 0, 0, &Z, S, 0, 0);
}
%type table_reference {SrcList*}