mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Fix for #1488
This commit is contained in:
parent
8980fe218b
commit
6b0112549e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue