summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorhf@deer.(none) <>2003-10-06 18:01:11 +0500
committerhf@deer.(none) <>2003-10-06 18:01:11 +0500
commitce6f77a9c5669155d9800490c5c60aad38ff0185 (patch)
treee98c95dc7d85e2a3764a6df6571651b8124b9647 /libmysqld
parent6b0112549e012d91d976c09b5aca0d46a0bd5dde (diff)
downloadmariadb-git-ce6f77a9c5669155d9800490c5c60aad38ff0185.tar.gz
Fix for #1447
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 019fe42e284..c9f98a701ef 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -184,6 +184,11 @@ static int STDCALL emb_stmt_execute(MYSQL_STMT *stmt)
THD *thd= (THD*)stmt->mysql->thd;
thd->client_param_count= stmt->param_count;
thd->client_params= stmt->params;
+ if (thd->data)
+ {
+ free_rows(thd->data);
+ thd->data= 0;
+ }
if (emb_advanced_command(stmt->mysql, COM_EXECUTE,0,0,
(const char*)&stmt->stmt_id,sizeof(stmt->stmt_id),1)
|| emb_mysql_read_query_result(stmt->mysql))