1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

WorkLog#1280 - Remove fixed table handler from lex/yacc

This commit is contained in:
antony@ltantony.rdg.cyberkinetica.homeunix.net
2003-12-02 20:23:13 +00:00
parent 0a5af44480
commit afc619f0a2
42 changed files with 209 additions and 89 deletions

View File

@@ -343,6 +343,26 @@ public:
};
class sys_var_thd_table_type :public sys_var_thd
{
protected:
ulong SV::*offset;
public:
sys_var_thd_table_type(const char *name_arg, ulong SV::*offset_arg)
:sys_var_thd(name_arg), offset(offset_arg)
{}
bool check(THD *thd, set_var *var);
SHOW_TYPE type() { return SHOW_CHAR; }
bool check_update_type(Item_result type)
{
return type != STRING_RESULT; /* Only accept strings */
}
void set_default(THD *thd, enum_var_type type);
bool update(THD *thd, set_var *var);
byte *value_ptr(THD *thd, enum_var_type type, LEX_STRING *base);
};
class sys_var_thd_bit :public sys_var_thd
{
sys_update_func update_func;