Commit f9c85521 authored by unknown's avatar unknown

Fix for #1488


libmysqld/lib_sql.cc:
  net->sqlstate should be initialized here
parent 24bf52c0
...@@ -95,7 +95,10 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command, ...@@ -95,7 +95,10 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
memcpy(net->sqlstate, thd->net.sqlstate, sizeof(net->sqlstate)); memcpy(net->sqlstate, thd->net.sqlstate, sizeof(net->sqlstate));
} }
else else
{
net->last_error[0]= 0; net->last_error[0]= 0;
strmov(net->sqlstate, not_error_sqlstate);
}
mysql->warning_count= ((THD*)mysql->thd)->total_warn_count; mysql->warning_count= ((THD*)mysql->thd)->total_warn_count;
return result; 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