summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-10-06 16:33:07 +0500
committerunknown <hf@deer.(none)>2003-10-06 16:33:07 +0500
commit24bf52c079d46e6032982b1647782af8992aac24 (patch)
tree5900ba89966ffab0b3c2db3e401a7093457f3a09 /libmysqld
parent1385d26e6ec60b602a2f4ac097bbc429ba8e5aa9 (diff)
parentd98b11868019000cce36e22a0db6090551f04353 (diff)
downloadmariadb-git-24bf52c079d46e6032982b1647782af8992aac24.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.stmt
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 94246135d37..2829074ce53 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -75,7 +75,10 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
client). So we have to call free_old_query here
*/
free_old_query(mysql);
- if (!arg)
+
+ thd->extra_length= arg_length;
+ thd->extra_data= (char *)arg;
+ if (header)
{
arg= header;
arg_length= header_length;