diff options
author | bar@mysql.com <> | 2004-09-07 15:42:19 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2004-09-07 15:42:19 +0500 |
commit | 2c86049decdf2d0d3fd0362548a538c9599e85e8 (patch) | |
tree | 256da1b65d60ac047776d8ed3c5bd1d23a364457 /sql/item_func.h | |
parent | 09f681ba7bbae9612675097936bb665d775645b8 (diff) | |
download | mariadb-git-2c86049decdf2d0d3fd0362548a538c9599e85e8.tar.gz |
Bug #5228 ORDER BY CAST(enumcol) sorts incorrectly under certain conditions
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index d45f7244e55..836ed27ee46 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -214,6 +214,7 @@ class Item_func_signed :public Item_int_func { public: Item_func_signed(Item *a) :Item_int_func(a) {} + const char *func_name() const { return "cast_as_signed"; } double val() { double tmp= args[0]->val(); @@ -236,6 +237,7 @@ class Item_func_unsigned :public Item_func_signed { public: Item_func_unsigned(Item *a) :Item_func_signed(a) {} + const char *func_name() const { return "cast_as_unsigned"; } void fix_length_and_dec() { max_length=args[0]->max_length; unsigned_flag=1; } void print(String *str); |