Commit d73855f0 authored by unknown's avatar unknown

USER, DATABASE and VERSION functions returns now IMPLICIT coercibility

parent 854e112d
...@@ -437,7 +437,7 @@ Item *create_func_version(void) ...@@ -437,7 +437,7 @@ Item *create_func_version(void)
{ {
return new Item_string(NullS,server_version, return new Item_string(NullS,server_version,
(uint) strlen(server_version), (uint) strlen(server_version),
system_charset_info); system_charset_info, Item::COER_IMPLICIT);
} }
Item *create_func_weekday(Item* a) Item *create_func_weekday(Item* a)
......
...@@ -333,7 +333,7 @@ class Item_func_decode :public Item_func_encode ...@@ -333,7 +333,7 @@ class Item_func_decode :public Item_func_encode
class Item_func_database :public Item_str_func class Item_func_database :public Item_str_func
{ {
public: public:
Item_func_database() {} Item_func_database() { coercibility= COER_IMPLICIT; }
String *val_str(String *); String *val_str(String *);
void fix_length_and_dec() void fix_length_and_dec()
{ {
...@@ -346,7 +346,7 @@ class Item_func_database :public Item_str_func ...@@ -346,7 +346,7 @@ class Item_func_database :public Item_str_func
class Item_func_user :public Item_str_func class Item_func_user :public Item_str_func
{ {
public: public:
Item_func_user() {} Item_func_user() { coercibility= COER_IMPLICIT; }
String *val_str(String *); String *val_str(String *);
void fix_length_and_dec() void fix_length_and_dec()
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment