[Commits] 1959a5f: Fixed problems with ANALYZE.

IgorBabaev igor at mariadb.com
Sun Apr 1 19:17:05 EEST 2018


revision-id: 1959a5f3c871fcf66424e770e14253551fdd8a2c (mariadb-10.3.1-133-g1959a5f)
parent(s): 02d831bc733aefdeace4d00310564125f3824430
author: Igor Babaev
committer: Igor Babaev
timestamp: 2018-04-01 09:17:05 -0700
message:

Fixed problems with ANALYZE.

---
 sql/sql_yacc.yy | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index e0849c7..25e7d2a 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -8359,6 +8359,8 @@ analyze:
           ANALYZE_SYM opt_no_write_to_binlog table_or_tables
           {
             LEX *lex=Lex;
+            if (lex->main_select_push())
+              YYABORT;
             lex->sql_command = SQLCOM_ANALYZE;
             lex->no_write_to_binlog= $2;
             lex->check_opt.init();
@@ -8373,6 +8375,7 @@ analyze:
             lex->m_sql_cmd= new (thd->mem_root) Sql_cmd_analyze_table();
             if (lex->m_sql_cmd == NULL)
               MYSQL_YYABORT;
+            Lex->pop_select(); //main select
           }
         ;
 


More information about the commits mailing list