diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-12-01 13:13:23 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-12-01 13:13:23 +0400 |
commit | 607ef786fc50b44b8e0cb4af8fdb3c79e4a327bb (patch) | |
tree | 72c8d7e9bc632b593e485f853a211cc839446ea7 /sql/procedure.h | |
parent | e3fed3b9b4f488e9ad1afa57333ae80249e6cb17 (diff) | |
download | mariadb-git-607ef786fc50b44b8e0cb4af8fdb3c79e4a327bb.tar.gz |
MDEV-9215 Detect cmp_type() and result_type() from field_type()
(A dependency task for MDEV-4912 Add a plugin to field types)
Diffstat (limited to 'sql/procedure.h')
-rw-r--r-- | sql/procedure.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/procedure.h b/sql/procedure.h index 2326f375721..1452f33652a 100644 --- a/sql/procedure.h +++ b/sql/procedure.h @@ -69,6 +69,7 @@ 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; } enum_field_types field_type() const { return MYSQL_TYPE_DOUBLE; } void set(double nr) { value=nr; } void set(longlong nr) { value=(double) nr; } @@ -96,6 +97,7 @@ 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; } enum_field_types field_type() const { return MYSQL_TYPE_LONGLONG; } void set(double nr) { value=(longlong) nr; } void set(longlong nr) { value=nr; } @@ -115,6 +117,7 @@ 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; } enum_field_types field_type() const { return MYSQL_TYPE_VARCHAR; } void set(double nr) { str_value.set_real(nr, 2, default_charset()); } void set(longlong nr) { str_value.set(nr, default_charset()); } |