summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-05-12 11:16:12 +0400
committerkonstantin@mysql.com <>2005-05-12 11:16:12 +0400
commitd0e24153b9b0d6da57823b16f2575070839e0f71 (patch)
tree554b6292888722f7406c34e5af18657d1bab8645 /sql/sql_select.h
parent3c81444476cebbf34ea99dae567077ca2f1648dc (diff)
downloadmariadb-git-d0e24153b9b0d6da57823b16f2575070839e0f71.tar.gz
A fix and test case for Bug#9478 "mysql_stmt_attr_set mysql_stmt_execute"
(crash on attempt to re-execute a statement with an open cursor) + post-review fixes.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index a27fbc60856..49ac58e913b 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -364,6 +364,10 @@ class JOIN :public Sql_alloc
/*
Server-side cursor (now stands only for basic read-only cursor)
See class implementation in sql_select.cc
+ A cursor has its own runtime state - list of used items and memory root of
+ used memory - which is different from Prepared statement runtime: it must
+ be different at least for the purpose of reusing the same prepared
+ statement for many cursors.
*/
class Cursor: public Sql_alloc, public Item_arena