summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-01-02 17:46:20 +0400
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-01-02 17:46:20 +0400
commit998167acce28212dd99a60a9eb35480c6325d936 (patch)
tree2d7c5ed9b6302c1df095afafd490d9239cd4d68d /libmysqld
parent0831699f5c231f28b297bfca10a5b532b7657183 (diff)
downloadmariadb-git-998167acce28212dd99a60a9eb35480c6325d936.tar.gz
embedded-server related fixes
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 7f9e2cced9e..a6e81cee78c 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -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;
}