[Commits] 6df2a27: Fixed parsing VALUE instead of VALUES in INSERT statements.

IgorBabaev igor at mariadb.com
Thu Apr 5 20:44:56 EEST 2018


revision-id: 6df2a2708492db3dac3b99d29e6e69403489b1c8 (mariadb-10.3.5-101-g6df2a27)
parent(s): d2539febb7e50ab556d03fde239011924d088fa7
author: Igor Babaev
committer: Igor Babaev
timestamp: 2018-04-05 10:44:56 -0700
message:

Fixed parsing VALUE instead of VALUES in INSERT statements.

---
 sql/sql_lex.cc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index c51e7bb..e202ccb 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1413,6 +1413,14 @@ int MYSQLlex(YYSTYPE *yylval, THD *thd)
       lip->lookahead_token= token;
       return VALUES;
     }
+  case VALUE_SYM:
+    if (thd->lex->current_select &&
+       thd->lex->current_select->parsing_place == BEFORE_OPT_FIELD_LIST)
+    {
+      thd->lex->current_select->parsing_place= NO_MATTER;
+      return VALUES;
+    }
+    break;
   case PARTITION_SYM:
   case SELECT_SYM:
   case UNION_SYM:


More information about the commits mailing list