diff options
author | bar@bar.intranet.mysql.r18.ru <> | 2006-12-05 16:09:27 +0400 |
---|---|---|
committer | bar@bar.intranet.mysql.r18.ru <> | 2006-12-05 16:09:27 +0400 |
commit | 293a3562775b4981ccf778d59b134211cb86eb08 (patch) | |
tree | 15b9590db38a89ab16b077137abc4073a06e2991 /sql/set_var.h | |
parent | 8f59d9917a3de76f0aef89d71c8b33c5f8846b35 (diff) | |
parent | 7c1b675e721ce3775a342dc7e812c0a1a1c06fb2 (diff) | |
download | mariadb-git-293a3562775b4981ccf778d59b134211cb86eb08.tar.gz |
Merge mysql.com:/usr/home/bar/mysql-5.0.b22645
into mysql.com:/usr/home/bar/mysql-5.1.b22645
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index 01669b378e1..154a7cdd885 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -909,13 +909,17 @@ 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) - {} + sys_var_thd(name_arg) + { +#if MYSQL_VERSION_ID < 50000 + no_support_one_shot= 0; +#endif + } 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 */ + return ((type != STRING_RESULT) && (type != INT_RESULT)); } bool check_default(enum_var_type type) { return 0; } bool update(THD *thd, set_var *var); |