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 /libmysql | |
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 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 6 |
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) { |