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 | ab609058874c15177d457a361071eab8bf77f32b (patch) | |
tree | bda751894ae1cf633dc4b570598ba196d228b2d5 /libmysqld | |
parent | aab9623a8dce2c19c1cb1af90ff5967e2977a240 (diff) | |
parent | fccf669818041d36a31c033c56a42c08423e32b3 (diff) | |
download | mariadb-git-ab609058874c15177d457a361071eab8bf77f32b.tar.gz |
BUG#13738989 : 62136 : FAILED TO FETCH SELECT RESULT USING EMBEDDED MYSQLD
Merge : 5.1->5.5
Diffstat (limited to 'libmysqld')
-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); } |