diff options
author | unknown <konstantin@mysql.com> | 2005-08-08 19:24:56 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-08-08 19:24:56 +0400 |
commit | 76a280f1805f3c21a7980fe9d04e97d2b100043f (patch) | |
tree | 44893bedfeef9d5c2293f49a03f5dda20400322a /sql/sql_select.h | |
parent | cfb8abd6cc384febda21607a6aafcb23700084a0 (diff) | |
download | mariadb-git-76a280f1805f3c21a7980fe9d04e97d2b100043f.tar.gz |
A fix and a test case for Bug#11909 "mysql_stmt_attr_set
CURSOR_TYPE_READ_ONLY nested queries corrupt result"
sql/sql_prepare.cc:
If there is a cursor, use its protocol for fetch:
Protocol instances have a state and thd->protocol_prep can't
be used for multiple cursors.
sql/sql_select.cc:
- init Cursor::protocol
sql/sql_select.h:
- add Cursor::protocol
tests/mysql_client_test.c:
A test case for Bug#11909 "mysql_stmt_attr_set CURSOR_TYPE_READ_ONLY
nested queries corrupt result"
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 1fa246370c6..c950444e1c6 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -396,6 +396,7 @@ class Cursor: public Sql_alloc, public Query_arena }; Engine_info ht_info[MAX_HA]; public: + Protocol_prep protocol; Item_change_list change_list; select_send result; THR_LOCK_OWNER lock_id; |