1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

fix mysqlest crash on ./mtr --sp innodb_fts.innodb-fts-stopword

This commit is contained in:
Sergei Golubchik
2021-06-12 12:38:45 +02:00
parent 887f46a618
commit c9f9e38bb5

View File

@@ -8574,7 +8574,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
log_file.flush(); log_file.flush();
dynstr_set(&ds_res, 0); dynstr_set(&ds_res, 0);
if (view_protocol_enabled && if (view_protocol_enabled && mysql &&
complete_query && complete_query &&
match_re(&view_re, query)) match_re(&view_re, query))
{ {
@@ -8620,7 +8620,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
dynstr_free(&query_str); dynstr_free(&query_str);
} }
if (sp_protocol_enabled && if (sp_protocol_enabled && mysql &&
complete_query && complete_query &&
match_re(&sp_re, query)) match_re(&sp_re, query))
{ {