diff options
author | unknown <konstantin@mysql.com> | 2006-04-07 23:50:45 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2006-04-07 23:50:45 +0400 |
commit | f37d610147cbd51bde10aceac4d18e2f1c415e68 (patch) | |
tree | caef8284933bbc72dce781ebbcc972d4256556b1 /sql/sql_class.h | |
parent | e4e37ae5a1fe6ed169f4e9e48daf86b2e8fbc2ee (diff) | |
parent | 5b5530daa5c0f5fb20121ab9ce5a159fce900101 (diff) | |
download | mariadb-git-f37d610147cbd51bde10aceac4d18e2f1c415e68.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/opt/local/work/mysql-4.1-16365
sql/mysql_priv.h:
Auto merged
sql/sql_class.h:
Auto merged
mysql-test/r/ps.result:
Manual merge
mysql-test/t/ps.test:
Manual merge
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 1bd7dcac03c..d482a524934 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -620,7 +620,7 @@ class Statement_map public: Statement_map(); - int insert(Statement *statement); + int insert(THD *thd, Statement *statement); Statement *find_by_name(LEX_STRING *name) { @@ -642,29 +642,10 @@ 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); - } + void erase(Statement *statement); /* Erase all statements (calls Statement destructor) */ - void reset() - { - my_hash_reset(&names_hash); - my_hash_reset(&st_hash); - last_found_statement= 0; - } - - ~Statement_map() - { - hash_free(&names_hash); - hash_free(&st_hash); - } + void reset(); + ~Statement_map(); private: HASH st_hash; HASH names_hash; @@ -932,6 +913,7 @@ public: { my_bool my_bool_value; long long_value; + ulong ulong_value; } sys_var_tmp; THD(); |