diff options
author | aivanov@mysql.com <> | 2005-09-14 20:25:00 +0400 |
---|---|---|
committer | aivanov@mysql.com <> | 2005-09-14 20:25:00 +0400 |
commit | 53e90b53bc5ca12995dbb400b5ed1785c4ba822b (patch) | |
tree | a96961d0d3883524dcd53ca0300556dc7d1de536 /sql/item_create.cc | |
parent | c1348ec13a96a69d7504cc6315da57452c64dccc (diff) | |
download | mariadb-git-53e90b53bc5ca12995dbb400b5ed1785c4ba822b.tar.gz |
Fixed BUG#12963, BUG#13000: wrong VIEW creation with DAYNAME(),
DAYOFWEEK(), and WEEKDAY().
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 82a82873ad9..342ef245a76 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -109,7 +109,7 @@ Item *create_func_dayofmonth(Item* a) Item *create_func_dayofweek(Item* a) { - return new Item_func_weekday(new Item_func_to_days(a),1); + return new Item_func_weekday(a, 1); } Item *create_func_dayofyear(Item* a) @@ -119,7 +119,7 @@ Item *create_func_dayofyear(Item* a) Item *create_func_dayname(Item* a) { - return new Item_func_dayname(new Item_func_to_days(a)); + return new Item_func_dayname(a); } Item *create_func_degrees(Item *a) @@ -443,7 +443,7 @@ Item *create_func_version(void) Item *create_func_weekday(Item* a) { - return new Item_func_weekday(new Item_func_to_days(a),0); + return new Item_func_weekday(a, 0); } Item *create_func_year(Item* a) |