MXS-1196: Handle top-level FOR loops

The content is ignored and the type is QUERY_TYPE_WRITE.
This commit is contained in:
Johan Wikman 2017-05-24 15:10:50 +03:00
parent b492f09d61
commit 77f05b49d0

View File

@ -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