1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix to have a reserved OK byte (prepare result)

sql/sql_prepare.cc:
  FFix to send a reserved OK byte on a prepared call
This commit is contained in:
unknown
2003-04-16 16:47:01 -07:00
parent a358ec28b8
commit 390597cf9a
2 changed files with 8 additions and 7 deletions

View File

@ -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)
{