diff options
author | lars/lthalmann@dl145j.mysql.com <> | 2007-01-12 12:31:44 +0100 |
---|---|---|
committer | lars/lthalmann@dl145j.mysql.com <> | 2007-01-12 12:31:44 +0100 |
commit | 1e356251a0838095863e0ed069ec4135752f5123 (patch) | |
tree | 8f05ed2f7b6984f4ca7df8e1eafad42a9d4235e2 /sql/set_var.h | |
parent | ebb4885357428d10aaa1628f860e1457de80d91b (diff) | |
parent | baf42721521eaa1258f5c26311ac6ccf860369fd (diff) | |
download | mariadb-git-1e356251a0838095863e0ed069ec4135752f5123.tar.gz |
Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl
into mysql.com:/nfsdisk1/lars/MERGE/mysql-5.1-merge
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index 3b0aa6cde9c..0354189b61f 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -908,13 +908,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); @@ -939,9 +943,7 @@ public: } }; -#ifdef HAVE_ROW_BASED_REPLICATION extern void fix_binlog_format_after_update(THD *thd, enum_var_type type); -#endif class sys_var_thd_binlog_format :public sys_var_thd_enum { @@ -949,9 +951,7 @@ public: sys_var_thd_binlog_format(const char *name_arg, ulong SV::*offset_arg) :sys_var_thd_enum(name_arg, offset_arg, &binlog_format_typelib -#ifdef HAVE_ROW_BASED_REPLICATION , fix_binlog_format_after_update -#endif ) {}; bool is_readonly() const; |