diff options
author | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-01-02 17:54:38 +0400 |
---|---|---|
committer | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-01-02 17:54:38 +0400 |
commit | 429b82bed30c96a59ab6dc2ddb6e5505cea085d4 (patch) | |
tree | 2a1b24767038bd76d2c4192f0a14c483050698ac /libmysqld | |
parent | 726a51bc77d55349917d9d058e32571480e999d0 (diff) | |
parent | 56155d83e7c6d917fcf3cb2bb8c1b7c4cf40b1b2 (diff) | |
download | mariadb-git-429b82bed30c96a59ab6dc2ddb6e5505cea085d4.tar.gz |
Merge mysql.com:/d2/hf/common/my41-common
into mysql.com:/d2/hf/common/my50-common
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 1006ee61923..6be3b92c8f8 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -306,7 +306,11 @@ int emb_read_binary_rows(MYSQL_STMT *stmt) { MYSQL_DATA *data; if (!(data= emb_read_rows(stmt->mysql, 0, 0))) + { + set_stmt_errmsg(stmt, stmt->mysql->net.last_error, + stmt->mysql->net.last_errno, stmt->mysql->net.sqlstate); return 1; + } stmt->result= *data; my_free((char *) data, MYF(0)); set_stmt_errmsg(stmt, stmt->mysql->net.last_error, |