summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <venu@myvenu.com>2003-04-16 16:47:01 -0700
committerunknown <venu@myvenu.com>2003-04-16 16:47:01 -0700
commit390597cf9a3baa330eba2013e2e1c1be744a19f0 (patch)
tree5eb8d5cafdf1500daabaccc7d11b32707cd86e42 /libmysql
parenta358ec28b8bbf2cca2a804f9e02cd6b155f8e79d (diff)
downloadmariadb-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 'libmysql')
-rw-r--r--libmysql/libmysql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index cd3c567718c..c289867b85e 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -3925,9 +3925,9 @@ static my_bool read_prepare_result(MYSQL_STMT *stmt)
DBUG_RETURN(1);
pos= (uchar*) mysql->net.read_pos;
- stmt->stmt_id= uint4korr(pos); pos+=4;
- field_count= uint2korr(pos); pos+=2;
- param_count= uint2korr(pos); pos+=2;
+ stmt->stmt_id= uint4korr(pos+1); pos+= 5;
+ field_count= uint2korr(pos); pos+= 2;
+ param_count= uint2korr(pos); pos+= 2;
if (field_count != 0)
{