Skip to content

Commit

Permalink
fix mysqlest crash on ./mtr --sp innodb_fts.innodb-fts-stopword
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Jun 12, 2021
1 parent 887f46a commit c9f9e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/mysqltest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8574,7 +8574,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
log_file.flush();
dynstr_set(&ds_res, 0);

if (view_protocol_enabled &&
if (view_protocol_enabled && mysql &&
complete_query &&
match_re(&view_re, query))
{
Expand Down Expand Up @@ -8620,7 +8620,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
dynstr_free(&query_str);
}

if (sp_protocol_enabled &&
if (sp_protocol_enabled && mysql &&
complete_query &&
match_re(&sp_re, query))
{
Expand Down

0 comments on commit c9f9e38

Please sign in to comment.