diff options
author | unknown <venu@myvenu.com> | 2003-04-16 16:47:01 -0700 |
---|---|---|
committer | unknown <venu@myvenu.com> | 2003-04-16 16:47:01 -0700 |
commit | 390597cf9a3baa330eba2013e2e1c1be744a19f0 (patch) | |
tree | 5eb8d5cafdf1500daabaccc7d11b32707cd86e42 /sql/sql_prepare.cc | |
parent | a358ec28b8bbf2cca2a804f9e02cd6b155f8e79d (diff) | |
download | mariadb-git-390597cf9a3baa330eba2013e2e1c1be744a19f0.tar.gz |
Fix to have a reserved OK byte (prepare result)
sql/sql_prepare.cc:
FFix to send a reserved OK byte on a prepared call
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index c3e84849431..95ac57013da 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -145,10 +145,11 @@ void free_prep_stmt(PREP_STMT *stmt, TREE_FREE mode, void *not_used) static bool send_prep_stmt(PREP_STMT *stmt, uint columns) { NET *net=&stmt->thd->net; - char buff[8]; - int4store(buff, stmt->stmt_id); - int2store(buff+4, columns); - int2store(buff+6, stmt->param_count); + char buff[9]; + buff[0]= 0; + int4store(buff+1, stmt->stmt_id); + int2store(buff+5, columns); + int2store(buff+7, stmt->param_count); #ifndef EMBEDDED_LIBRARY /* This should be fixed to work with prepared statements */ |