diff options
author | unknown <konstantin@mysql.com> | 2005-01-12 17:04:45 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-01-12 17:04:45 +0300 |
commit | b692ca4fd5e8a455e408178ecb49d87a3a83f7f1 (patch) | |
tree | 095364b3b75ac6deb835f2aae176fae823d806e5 | |
parent | 731038707837d86ce44c2e49c1966dc7e1bdff31 (diff) | |
download | mariadb-git-b692ca4fd5e8a455e408178ecb49d87a3a83f7f1.tar.gz |
A fix for Bug#6761 "mysql_list_fields() does not work": test
case will be added to client_test in 4.1
sql/sql_parse.cc:
A fix for bug #6761: "mysql_list_fields() does not work": init
thd->query_length, which is used next line. Remove a stale comment.
-rw-r--r-- | sql/sql_parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 6b3723d89c4..1aeb158dc11 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1104,7 +1104,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, thd->free_list=0; table_list.alias= table_list.real_name= thd->strdup(packet); packet=strend(packet)+1; - // command not cachable => no gap for data base name + thd->query_length= strlen(packet); // for simplicity: don't optimize if (!(thd->query=fields=thd->memdup(packet,thd->query_length+1))) break; mysql_log.write(thd,command,"%s %s",table_list.real_name,fields); |