From 77f05b49d0ef2a999d8ac88a427fded364755670 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 24 May 2017 15:10:50 +0300 Subject: [PATCH] MXS-1196: Handle top-level FOR loops The content is ignored and the type is QUERY_TYPE_WRITE. --- query_classifier/qc_sqlite/qc_sqlite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/query_classifier/qc_sqlite/qc_sqlite.c b/query_classifier/qc_sqlite/qc_sqlite.c index 5063ad1c3..50de7f5dc 100644 --- a/query_classifier/qc_sqlite/qc_sqlite.c +++ b/query_classifier/qc_sqlite/qc_sqlite.c @@ -2522,6 +2522,7 @@ int maxscaleKeyword(int token) case TK_BEGIN: case TK_DECLARE: + case TK_FOR: if (this_unit.sql_mode == QC_SQL_MODE_ORACLE) { // The beginning of a BLOCK. We'll assume it is in a single