diff options
author | Mayank Prasad <mayank.prasad@oracle.com> | 2012-04-06 17:06:05 +0530 |
---|---|---|
committer | Mayank Prasad <mayank.prasad@oracle.com> | 2012-04-06 17:06:05 +0530 |
commit | 395f57c55a09b8a41d038013258ddc8e42a6d8ed (patch) | |
tree | bda751894ae1cf633dc4b570598ba196d228b2d5 | |
parent | 42e69057d8628b28c38caeba1166a0e4f1ea54e1 (diff) | |
parent | fe3f79933bb13023a41e626dc3b5fd5ad75508f6 (diff) | |
download | mariadb-git-395f57c55a09b8a41d038013258ddc8e42a6d8ed.tar.gz |
BUG#13738989 : 62136 : FAILED TO FETCH SELECT RESULT USING EMBEDDED MYSQLD
Merge : 5.1->5.5
-rw-r--r-- | libmysqld/lib_sql.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 93790082fba..2de7217f10b 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -343,6 +343,8 @@ static int emb_stmt_execute(MYSQL_STMT *stmt) set_stmt_errmsg(stmt, net); DBUG_RETURN(1); } + else if (stmt->mysql->status == MYSQL_STATUS_GET_RESULT) + stmt->mysql->status= MYSQL_STATUS_STATEMENT_GET_RESULT; DBUG_RETURN(0); } |