From d2013e73288c953a6cbcdddf9688584c0353535d Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Thu, 4 Apr 2019 16:36:26 -0700 Subject: 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. --- sql/sql_lex.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_lex.cc') 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; -- cgit v1.2.1