From 573a2c6160644dacbf9ac2fdeecbbfddb6664326 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Tue, 23 May 2017 10:45:26 +0300 Subject: [PATCH] MXS-1196: Accept ".tbl.col" columns names --- query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y b/query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y index 76813045d..2555ab7bd 100644 --- a/query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y +++ b/query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y @@ -1778,6 +1778,12 @@ expr(A) ::= nm(X) DOT nm(Y). { A.pExpr = sqlite3PExpr(pParse, TK_DOT, temp1, temp2, 0); spanSet(&A,&X,&Y); } +expr(A) ::= DOT nm(X) DOT nm(Y). { + Expr *temp1 = sqlite3PExpr(pParse, TK_ID, 0, 0, &X); + Expr *temp2 = sqlite3PExpr(pParse, TK_ID, 0, 0, &Y); + A.pExpr = sqlite3PExpr(pParse, TK_DOT, temp1, temp2, 0); + spanSet(&A,&X,&Y); +} expr(A) ::= nm(X) DOT nm(Y) DOT nm(Z). { Expr *temp1 = sqlite3PExpr(pParse, TK_ID, 0, 0, &X); Expr *temp2 = sqlite3PExpr(pParse, TK_ID, 0, 0, &Y);