From 3972e372aec1a1c4355227d4ac76af583d582cc2 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Thu, 18 Jun 2020 08:40:22 +0300 Subject: [PATCH] MXS-3041 Fix 'SELECT handler FROM t FOR UPDATE' Problem was that 'handler' is a keyword. To make it work, the keyword must be listed as one of those that turns into an id where it cannot be used as a keyword. --- query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y | 1 + 1 file changed, 1 insertion(+) 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 538a97076..75b8401b4 100644 --- a/query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y +++ b/query_classifier/qc_sqlite/sqlite-src-3110100/src/parse.y @@ -625,6 +625,7 @@ columnid(A) ::= nm(X). { /*EACH*/ END ENGINE ENUM EXCLUSIVE /*EXPLAIN*/ EXTENDED FIELDS FIRST FLUSH /*FOR*/ FORMAT GLOBAL + HANDLER // TODO: IF is a reserved word and should not automatically convert into an identifer. IF IMMEDIATE INITIALLY INSTEAD /*KEY*/