summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-10-07 22:17:05 +0200
committerSergei Golubchik <serg@mariadb.org>2019-10-14 10:29:31 +0200
commit721a9df75137bd1a41dc1547d5c615781754aec6 (patch)
tree3dd8b9de82c754dbcfd7cc4dad0c9c04c43e5920 /sql/sql_parse.cc
parent828d9ae597a88c2d4273929f5fcb1c0ae8d073e4 (diff)
downloadmariadb-git-721a9df75137bd1a41dc1547d5c615781754aec6.tar.gz
cleanup: formatting
comments, whitespaces
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 0adba6f64e0..bbf00e591e3 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -4488,12 +4488,8 @@ mysql_execute_command(THD *thd)
#ifdef ENABLED_DEBUG_SYNC
DBUG_EXECUTE_IF("after_mysql_insert",
{
- const char act1[]=
- "now "
- "wait_for signal.continue";
- const char act2[]=
- "now "
- "signal signal.continued";
+ const char act1[]= "now wait_for signal.continue";
+ const char act2[]= "now signal signal.continued";
DBUG_ASSERT(debug_sync_service);
DBUG_ASSERT(!debug_sync_set_action(thd,
STRING_WITH_LEN(act1)));
@@ -4646,8 +4642,7 @@ mysql_execute_command(THD *thd)
unit->set_limit(select_lex);
MYSQL_DELETE_START(thd->query());
- Protocol * UNINIT_VAR(save_protocol);
- bool replaced_protocol= false;
+ Protocol *save_protocol= NULL;
if (!select_lex->item_list.is_empty())
{
@@ -4659,7 +4654,6 @@ mysql_execute_command(THD *thd)
output and then discard it.
*/
sel_result= new (thd->mem_root) select_send_analyze(thd);
- replaced_protocol= true;
save_protocol= thd->protocol;
thd->protocol= new Protocol_discard(thd);
}
@@ -4675,7 +4669,7 @@ mysql_execute_command(THD *thd)
unit->lim.get_select_limit(), select_lex->options,
lex->result ? lex->result : sel_result);
- if (replaced_protocol)
+ if (save_protocol)
{
delete thd->protocol;
thd->protocol= save_protocol;