diff options
author | monty@mashka.mysql.fi <> | 2002-12-05 16:38:49 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-05 16:38:49 +0200 |
commit | 7d681c444992f091fced52536fc960e546bd54b6 (patch) | |
tree | e7064c81623ddc900c1933e03b9ce1c1fe234ff6 /sql/set_var.h | |
parent | 2435dce96d5fbb4e6b34cc976f0301666a3793d2 (diff) | |
download | mariadb-git-7d681c444992f091fced52536fc960e546bd54b6.tar.gz |
Copy arguments given to mysql_server_init()
Made keybuff_size longlong (To make show variables work similar on 32
and 64 bit systems)
Fixed some 'not initalized variable errors' in multi-table-update.
Fixed memory leak in multi-table-update.
Now all tests works under valgrind without any errors.
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index a171c4f5e76..3edd0373db9 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -85,6 +85,22 @@ public: }; +class sys_var_ulonglong_ptr :public sys_var +{ +public: + ulonglong *value; + sys_var_ulonglong_ptr(const char *name_arg, ulonglong *value_ptr) + :sys_var(name_arg),value(value_ptr) {} + sys_var_ulonglong_ptr(const char *name_arg, ulonglong *value_ptr, + sys_after_update_func func) + :sys_var(name_arg,func), value(value_ptr) {} + bool update(THD *thd, set_var *var); + void set_default(THD *thd, enum_var_type type); + SHOW_TYPE type() { return SHOW_LONGLONG; } + byte *value_ptr(THD *thd, enum_var_type type) { return (byte*) value; } +}; + + class sys_var_bool_ptr :public sys_var { public: |