USER, DATABASE and VERSION functions returns now IMPLICIT coercibility

This commit is contained in:
unknown 2003-05-22 18:41:47 +05:00
commit 1ad3551835
2 changed files with 3 additions and 3 deletions

View file

@ -437,7 +437,7 @@ Item *create_func_version(void)
{
return new Item_string(NullS,server_version,
(uint) strlen(server_version),
system_charset_info);
system_charset_info, Item::COER_IMPLICIT);
}
Item *create_func_weekday(Item* a)

View file

@ -333,7 +333,7 @@ public:
class Item_func_database :public Item_str_func
{
public:
Item_func_database() {}
Item_func_database() { coercibility= COER_IMPLICIT; }
String *val_str(String *);
void fix_length_and_dec()
{
@ -346,7 +346,7 @@ public:
class Item_func_user :public Item_str_func
{
public:
Item_func_user() {}
Item_func_user() { coercibility= COER_IMPLICIT; }
String *val_str(String *);
void fix_length_and_dec()
{