summaryrefslogtreecommitdiff
path: root/libmysqld/lib_sql.cc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-06-30 16:17:10 +0400
committerkonstantin@mysql.com <>2005-06-30 16:17:10 +0400
commitf60ebc4815f9fd7fedacfb849547edf73feee3a9 (patch)
treeb91ecb9596611574c3dc8bcfd25af12fca92bfe9 /libmysqld/lib_sql.cc
parente4aedcc2c137ba667e3d429031ce284032e11060 (diff)
downloadmariadb-git-f60ebc4815f9fd7fedacfb849547edf73feee3a9.tar.gz
A fix and a test case for Bug#10794 "mysql_stmt_attr_set no
open cursor after mysql_stmt_execute" + post-review fixes. The bug was caused by wrong flags in stmt->server_status on the client side: if there was no cursor, the server didn't send server_status flags to the client, and the old flags were used to set up the fetch function of a statement. Consequently, stmt_read_row_from_cursor was used when there was no cursor. The fix fixes the server to always send server flags to the client.
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index dd4ba939ebe..c3b239ac7b9 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -773,7 +773,7 @@ send_ok(THD *thd,ha_rows affected_rows,ulonglong id,const char *message)
}
void
-send_eof(THD *thd, bool no_flush)
+send_eof(THD *thd)
{
}