diff options
author | unknown <ramil@mysql.com> | 2005-05-13 16:18:27 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-05-13 16:18:27 +0500 |
commit | 7c1d520ef1a18ad397499de6d70debe5be81dd99 (patch) | |
tree | e0309c4f096ab1e6169944c36be8eb9af6208aae /sql/set_var.h | |
parent | 4acfc0b6111fb069cc718b6b87d821407190999e (diff) | |
download | mariadb-git-7c1d520ef1a18ad397499de6d70debe5be81dd99.tar.gz |
a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count ').
sql/set_var.cc:
a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count ').
test for read only variables added.
sql/set_var.h:
a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count ').
sys_var::is_readonly() method introduced.
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index 32f45187124..37522a0b753 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -75,6 +75,7 @@ public: { return option_limits == 0; } Item *item(THD *thd, enum_var_type type, LEX_STRING *base); virtual bool is_struct() { return 0; } + virtual bool is_readonly() const { return 0; } }; @@ -699,6 +700,7 @@ public: return (*value_ptr_func)(thd); } SHOW_TYPE type() { return show_type; } + bool is_readonly() const { return 1; } }; class sys_var_thd_time_zone :public sys_var_thd |