Commit 2746e7de authored by unknown's avatar unknown

Fix for #2209

mysql->server_status wasn't set after the query


libmysqld/lib_sql.cc:
  Server status assignement added
parent c6ca96ad
......@@ -96,6 +96,7 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
net->last_error[0]= 0;
strmov(net->sqlstate, not_error_sqlstate);
}
mysql->server_status= thd->server_status;
mysql->warning_count= ((THD*)mysql->thd)->total_warn_count;
return result;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment