mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '5.5' into 10.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
|
||||
Copyright (c) 2009, 2016, Monty Program Ab.
|
||||
Copyright (c) 2009, 2017, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -1062,7 +1062,7 @@ void do_eval(DYNAMIC_STRING *query_eval, const char *query,
|
||||
if (!(v= var_get(p, &p, 0, 0)))
|
||||
{
|
||||
report_or_die( "Bad variable in eval");
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
dynstr_append_mem(query_eval, v->str_val, v->str_val_len);
|
||||
}
|
||||
@@ -1777,7 +1777,7 @@ static int run_command(char* cmd,
|
||||
if (!(res_file= popen(cmd, "r")))
|
||||
{
|
||||
report_or_die("popen(\"%s\", \"r\") failed", cmd);
|
||||
return -1;
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
|
||||
while (fgets(buf, sizeof(buf), res_file))
|
||||
@@ -2685,7 +2685,7 @@ void var_query_set(VAR *var, const char *query, const char** query_end)
|
||||
report_or_die("Query '%s' didn't return a result set", ds_query.str);
|
||||
dynstr_free(&ds_query);
|
||||
eval_expr(var, "", 0);
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
dynstr_free(&ds_query);
|
||||
|
||||
@@ -2876,7 +2876,7 @@ void var_set_query_get_value(struct st_command *command, VAR *var)
|
||||
dynstr_free(&ds_query);
|
||||
dynstr_free(&ds_col);
|
||||
eval_expr(var, "", 0);
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
{
|
||||
@@ -2901,7 +2901,7 @@ void var_set_query_get_value(struct st_command *command, VAR *var)
|
||||
ds_col.str, ds_query.str);
|
||||
dynstr_free(&ds_query);
|
||||
dynstr_free(&ds_col);
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
DBUG_PRINT("info", ("Found column %d with name '%s'",
|
||||
i, fields[i].name));
|
||||
@@ -3349,7 +3349,7 @@ void do_exec(struct st_command *command)
|
||||
if (!*cmd)
|
||||
{
|
||||
report_or_die("Missing argument in exec");
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
command->last_argument= command->end;
|
||||
|
||||
@@ -3383,7 +3383,7 @@ void do_exec(struct st_command *command)
|
||||
dynstr_free(&ds_cmd);
|
||||
if (command->abort_on_error)
|
||||
report_or_die("popen(\"%s\", \"r\") failed", command->first_argument);
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
ds_result= &ds_res;
|
||||
@@ -3441,7 +3441,7 @@ void do_exec(struct st_command *command)
|
||||
ds_cmd.str, error, status, errno,
|
||||
ds_res.str);
|
||||
dynstr_free(&ds_cmd);
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
DBUG_PRINT("info",
|
||||
@@ -3574,7 +3574,7 @@ void do_system(struct st_command *command)
|
||||
if (strlen(command->first_argument) == 0)
|
||||
{
|
||||
report_or_die("Missing arguments to system, nothing to do!");
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
init_dynamic_string(&ds_cmd, 0, command->query_len + 64, 256);
|
||||
@@ -4561,7 +4561,7 @@ void do_perl(struct st_command *command)
|
||||
if (command->abort_on_error)
|
||||
die("popen(\"%s\", \"r\") failed", buf);
|
||||
dynstr_free(&ds_delimiter);
|
||||
return;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
while (fgets(buf, sizeof(buf), res_file))
|
||||
|
Reference in New Issue
Block a user