diff options
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r-- | client/mysqltest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index bc025e68ffe..06f6ab2f1ce 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -5319,6 +5319,14 @@ int main(int argc, char **argv) q->require_file=require_file; save_file[0]=0; } + /* + To force something being sent as a query to the mysqld one can + use the prefix "query". Remove "query" from string before executing + */ + if (strncmp(q->query, "query ", 6) == 0) + { + q->query= q->first_argument; + } run_query(&cur_con->mysql, q, flags); query_executed= 1; q->last_argument= q->end; |