1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

embedded-server related fixes

This commit is contained in:
holyfoot/hf@mysql.com/hfmain.(none)
2007-01-02 17:46:20 +04:00
parent 0831699f5c
commit 998167acce
4 changed files with 10 additions and 2 deletions

View File

@ -249,7 +249,13 @@ int emb_read_binary_rows(MYSQL_STMT *stmt)
{
MYSQL_DATA *data;
if (!(data= emb_read_rows(stmt->mysql, 0, 0)))
{
strmake(stmt->sqlstate, stmt->mysql->net.sqlstate, sizeof(stmt->sqlstate));
strmake(stmt->last_error, stmt->mysql->net.last_error,
sizeof(stmt->last_error));
stmt->last_errno= stmt->mysql->net.last_errno;
return 1;
}
return 0;
}