diff options
author | kostja@bodhi.local <> | 2006-07-26 23:33:25 +0400 |
---|---|---|
committer | kostja@bodhi.local <> | 2006-07-26 23:33:25 +0400 |
commit | 73189969f358be1530a1421fe38ea5cd183cfe10 (patch) | |
tree | 9127bb933b3774974a321dce0ca111f0e8ac8991 /sql/set_var.h | |
parent | bea330494ce2ef65fcdb0c74c646af7df8a0d778 (diff) | |
parent | bd183d42dcf66432d2e8051e030919a4669eaf8c (diff) | |
download | mariadb-git-73189969f358be1530a1421fe38ea5cd183cfe10.tar.gz |
Merge bodhi.local:/opt/local/work/tmp_merge
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index b968b4c7840..a63bcc4a55d 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -28,6 +28,8 @@ class sys_var; class set_var; typedef struct system_variables SV; +typedef struct my_locale_st MY_LOCALE; + extern TYPELIB bool_typelib, delay_key_write_typelib, sql_mode_typelib; typedef int (*sys_check_func)(THD *, set_var *); @@ -903,6 +905,25 @@ public: }; +class sys_var_thd_lc_time_names :public sys_var_thd +{ +public: + sys_var_thd_lc_time_names(const char *name_arg): + sys_var_thd(name_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 */ + } + bool check_default(enum_var_type type) { return 0; } + bool update(THD *thd, set_var *var); + byte *value_ptr(THD *thd, enum_var_type type, LEX_STRING *base); + virtual void set_default(THD *thd, enum_var_type type); +}; + + class sys_var_event_scheduler :public sys_var_long_ptr { /* We need a derived class only to have a warn_deprecated() */ @@ -964,6 +985,7 @@ public: handlerton *hton; DATE_TIME_FORMAT *date_time_format; Time_zone *time_zone; + MY_LOCALE *locale_value; } save_result; LEX_STRING base; /* for structs */ |