diff options
author | unknown <hf@deer.(none)> | 2003-10-06 16:32:38 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-10-06 16:32:38 +0500 |
commit | f9ce2f4b580fc1ff74660230546dd3ca2085d3b0 (patch) | |
tree | 3c38dcd2a1c44b3a03449faa099b41216fd3c77f /libmysqld | |
parent | 1d5c187e2fd7e24782829cc32aaa00e3e015a0b6 (diff) | |
download | mariadb-git-f9ce2f4b580fc1ff74660230546dd3ca2085d3b0.tar.gz |
Fix for #1487
libmysqld/lib_sql.cc:
arg_parameters now are stored in these THD members
sql/sql_class.h:
members to store query arguments
sql/sql_prepare.cc:
query arguments retrieval added for embedded case
code not necessary in embedded server #ifdefed
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 5 |
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; |