summaryrefslogtreecommitdiff
path: root/mysql-test/r/null.result
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-06-09 18:17:45 +0400
committerunknown <konstantin@mysql.com>2005-06-09 18:17:45 +0400
commit591e542ebe75e5e0debbd4fe210ac41d2cc44dc3 (patch)
tree42b180780987eb4b179c41965fb88f3e1d721210 /mysql-test/r/null.result
parente4be7a28e8ed312614df1f3e072c30ec9d5976da (diff)
downloadmariadb-git-591e542ebe75e5e0debbd4fe210ac41d2cc44dc3.tar.gz
A fix and test case for Bug#10729 "mysql_stmt_attr_set
CURSOR_TYPE_READ_ONLY". The bug was that we (me) don't perform proper cleanups of the prepared statement when done fetching from a cursor. Another patch. sql/mysql_priv.h: Rename reset_stmt_for_execute to init_stmt_before_use (to correspond to cleanup_stmt_and_thd_after_use). sql/sp_head.cc: Rename. sql/sql_prepare.cc: Move common cleanup code to a cleanup function, call it when we close a cursor. sql/sql_select.cc: Cleanup. sql/sql_select.h: No need for init_thd, this code has been inlined in Cursor::open. tests/mysql_client_test.c: Add a test case for Bug#10729 "mysql_stmt_attr_set CURSOR_TYPE_READ_ONLY" (problem reusing a prepared statemnt if there was a cursor)
Diffstat (limited to 'mysql-test/r/null.result')
0 files changed, 0 insertions, 0 deletions