diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-09-19 11:39:36 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:02:49 +0400 |
commit | c8822d71efd426902db6f8096037a1ad9d61b3fe (patch) | |
tree | 6d9ae14303c43bab1c9851f3f6c5e5ce5d3b14c1 /sql/item_create.cc | |
parent | 02a72cf87c51cf3e33627e1f358d18205f7bba3b (diff) | |
download | mariadb-git-c8822d71efd426902db6f8096037a1ad9d61b3fe.tar.gz |
MDEV-10342 Providing compatibility for basic SQL built-in functions
Adding the Oracle style DECODE function:
DECODE(operand, search, result [, search, result ...] [, default_result])
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 978459acf0e..6b0a8d2c87f 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -882,19 +882,6 @@ protected: }; -class Create_func_decode : public Create_func_arg2 -{ -public: - virtual Item *create_2_arg(THD *thd, Item *arg1, Item *arg2); - - static Create_func_decode s_singleton; - -protected: - Create_func_decode() {} - virtual ~Create_func_decode() {} -}; - - class Create_func_degrees : public Create_func_arg1 { public: @@ -4067,15 +4054,6 @@ Create_func_dayofyear::create_1_arg(THD *thd, Item *arg1) } -Create_func_decode Create_func_decode::s_singleton; - -Item* -Create_func_decode::create_2_arg(THD *thd, Item *arg1, Item *arg2) -{ - return new (thd->mem_root) Item_func_decode(thd, arg1, arg2); -} - - Create_func_degrees Create_func_degrees::s_singleton; Item* @@ -6772,7 +6750,6 @@ static Native_func_registry func_array[] = { { C_STRING_WITH_LEN("DAYOFMONTH") }, BUILDER(Create_func_dayofmonth)}, { { C_STRING_WITH_LEN("DAYOFWEEK") }, BUILDER(Create_func_dayofweek)}, { { C_STRING_WITH_LEN("DAYOFYEAR") }, BUILDER(Create_func_dayofyear)}, - { { C_STRING_WITH_LEN("DECODE") }, BUILDER(Create_func_decode)}, { { C_STRING_WITH_LEN("DEGREES") }, BUILDER(Create_func_degrees)}, { { C_STRING_WITH_LEN("DECODE_HISTOGRAM") }, BUILDER(Create_func_decode_histogram)}, { { C_STRING_WITH_LEN("DES_DECRYPT") }, BUILDER(Create_func_des_decrypt)}, |