diff options
author | monty@mashka.mysql.fi <> | 2002-12-20 14:58:27 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-20 14:58:27 +0200 |
commit | b5aa9ae0c768c92321e99939f5533bcce8382366 (patch) | |
tree | 1cf172e757bfa6aca7ae5af20ed7b0c727016120 /sql/set_var.h | |
parent | e2e5d5986672928d6e01f2bb7815ec5a1bf7c374 (diff) | |
download | mariadb-git-b5aa9ae0c768c92321e99939f5533bcce8382366.tar.gz |
Changed thd variables max_join_size and select_limit to type ha_rows.
This fixed some optimization problems when using -DBIG_TABLES
Portabilty fixes for OpenUnix and HPUX
Added C and C++ version numbers to mysqlbug
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index 3edd0373db9..c74f1e827bd 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -211,6 +211,24 @@ public: }; +class sys_var_thd_ha_rows :public sys_var_thd +{ +public: + ha_rows SV::*offset; + sys_var_thd_ha_rows(const char *name_arg, ha_rows SV::*offset_arg) + :sys_var_thd(name_arg), offset(offset_arg) + {} + sys_var_thd_ha_rows(const char *name_arg, ha_rows SV::*offset_arg, + sys_after_update_func func) + :sys_var_thd(name_arg,func), offset(offset_arg) + {} + bool update(THD *thd, set_var *var); + void set_default(THD *thd, enum_var_type type); + SHOW_TYPE type() { return SHOW_HA_ROWS; } + byte *value_ptr(THD *thd, enum_var_type type); +}; + + class sys_var_thd_ulonglong :public sys_var_thd { public: |