summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2019-04-04 16:36:26 -0700
committerIgor Babaev <igor@askmonty.org>2019-04-04 16:36:26 -0700
commitd2013e73288c953a6cbcdddf9688584c0353535d (patch)
treeaf93870bb10b7eb6e1c4f7ca278a7c5fa01eb3d2 /sql/sql_lex.cc
parentae15f91f227015b3e1ad3f566db9396232cf0a3f (diff)
downloadmariadb-git-d2013e73288c953a6cbcdddf9688584c0353535d.tar.gz
MDEV-18982 Partition pruning with column list causes syntax error in 10.4
A syntax error was reported for any INSERT statement with explicit partition selection it if i used a column list. Fixed by saving the parsing place before parsing the clause for explicit partition selection and restoring it when the clause has been parsed.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 4dc6b94465d..3f28ab91b9a 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -2381,6 +2381,7 @@ void st_select_lex::init_query()
first_natural_join_processing= 1;
first_cond_optimization= 1;
parsing_place= NO_MATTER;
+ save_parsing_place= NO_MATTER;
exclude_from_table_unique_test= no_wrap_view_item= FALSE;
nest_level= 0;
link_next= 0;