summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-01-02 17:46:20 +0400
committerunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-01-02 17:46:20 +0400
commit4a12418583b0527ea4f91c96de6e6991fdc45a15 (patch)
tree2d7c5ed9b6302c1df095afafd490d9239cd4d68d /libmysqld
parent62576974dec88d0c663e7e8a93065e05e9ca484a (diff)
downloadmariadb-git-4a12418583b0527ea4f91c96de6e6991fdc45a15.tar.gz
embedded-server related fixes
libmysqld/lib_sql.cc: error message moved to 'stmt' mysql-test/t/distinct.test: temporary disabled in embedded server mysql-test/t/mysqladmin.test: disabled in embedded server sql/sql_prepare.cc: superfluous #ifndef removed
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;
}