summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-10-06 12:09:20 +0500
committerunknown <hf@deer.(none)>2003-10-06 12:09:20 +0500
commit5218a0cd15ab6ac3f0e91394ef085107bd79e5a1 (patch)
treee20be8ad1267392e978422b4ae38ff82d7eadb62 /libmysqld
parent4f4b786dc2aa6dce25f95676d8e0001905719a03 (diff)
downloadmariadb-git-5218a0cd15ab6ac3f0e91394ef085107bd79e5a1.tar.gz
Fix for #1470
libmysqld/lib_sql.cc: check for error sql/sql_prepare.cc: set success mark here
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index e70f34397d6..94246135d37 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -128,6 +128,8 @@ static MYSQL_FIELD * STDCALL emb_list_fields(MYSQL *mysql)
static my_bool STDCALL emb_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt)
{
THD *thd= (THD*)mysql->thd;
+ if (mysql->net.last_errno)
+ return 1;
stmt->stmt_id= thd->client_stmt_id;
stmt->param_count= thd->client_param_count;
stmt->field_count= mysql->field_count;