summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2006-04-12 16:14:20 -0700
committerigor@rurik.mysql.com <>2006-04-12 16:14:20 -0700
commit316eeff690f6c9b3322530c6b0424969291c61e9 (patch)
treecd1c2b2a3a3cd36857440fd731bcdc8e9184ce58 /sql/sql_class.h
parentabc16b5b007e20a43b5403770473f1b58dbad76c (diff)
parentc49e6f8869c150dfebc3b181cdeb8394ad81db5b (diff)
downloadmariadb-git-316eeff690f6c9b3322530c6b0424969291c61e9.tar.gz
Merge rurik.mysql.com:/home/igor/mysql-5.0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index c1c1b9eceb3..7c74ff6fa93 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -845,7 +845,7 @@ class Statement_map
public:
Statement_map();
- int insert(Statement *statement);
+ int insert(THD *thd, Statement *statement);
Statement *find_by_name(LEX_STRING *name)
{
@@ -867,36 +867,16 @@ public:
}
return last_found_statement;
}
- void erase(Statement *statement)
- {
- if (statement == last_found_statement)
- last_found_statement= 0;
- if (statement->name.str)
- {
- hash_delete(&names_hash, (byte *) statement);
- }
- hash_delete(&st_hash, (byte *) statement);
- }
/*
Close all cursors of this connection that use tables of a storage
engine that has transaction-specific state and therefore can not
survive COMMIT or ROLLBACK. Currently all but MyISAM cursors are closed.
*/
void close_transient_cursors();
+ void erase(Statement *statement);
/* Erase all statements (calls Statement destructor) */
- void reset()
- {
- my_hash_reset(&names_hash);
- my_hash_reset(&st_hash);
- transient_cursor_list.empty();
- last_found_statement= 0;
- }
-
- void destroy()
- {
- hash_free(&names_hash);
- hash_free(&st_hash);
- }
+ void reset();
+ ~Statement_map();
private:
HASH st_hash;
HASH names_hash;
@@ -1373,6 +1353,7 @@ public:
{
my_bool my_bool_value;
long long_value;
+ ulong ulong_value;
} sys_var_tmp;
struct {