diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-07 09:12:54 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-07 09:12:54 +0400 |
commit | 4e9022b48beadbad5bfe32fe67107f930381b3fb (patch) | |
tree | 0f87845a1bb6fe5de7fe0d43836c6d5cbb82c1a5 /sql/procedure.h | |
parent | cc694792c9dc3fe4ce6a228b57f45adcc961b1e0 (diff) | |
download | mariadb-git-4e9022b48beadbad5bfe32fe67107f930381b3fb.tar.gz |
MDEV-12718 Determine Item::cmp_type() from Item::type_handler()
Diffstat (limited to 'sql/procedure.h')
-rw-r--r-- | sql/procedure.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/procedure.h b/sql/procedure.h index 2c718e0d5b9..e3350b21369 100644 --- a/sql/procedure.h +++ b/sql/procedure.h @@ -72,7 +72,6 @@ public: decimals=dec; max_length=float_length(dec); } enum Item_result result_type () const { return REAL_RESULT; } - enum Item_result cmp_type () const { return REAL_RESULT; } const Type_handler *type_handler() const { return &type_handler_double; } void set(double nr) { value=nr; } void set(longlong nr) { value=(double) nr; } @@ -100,7 +99,6 @@ public: Item_proc_int(THD *thd, const char *name_par): Item_proc(thd, name_par) { max_length=11; } enum Item_result result_type () const { return INT_RESULT; } - enum Item_result cmp_type () const { return INT_RESULT; } const Type_handler *type_handler() const { return &type_handler_longlong; } void set(double nr) { value=(longlong) nr; } void set(longlong nr) { value=nr; } @@ -120,7 +118,6 @@ public: Item_proc_string(THD *thd, const char *name_par, uint length): Item_proc(thd, name_par) { this->max_length=length; } enum Item_result result_type () const { return STRING_RESULT; } - enum Item_result cmp_type () const { return STRING_RESULT; } const Type_handler *type_handler() const { return &type_handler_varchar; } void set(double nr) { str_value.set_real(nr, 2, default_charset()); } void set(longlong nr) { str_value.set(nr, default_charset()); } |