summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-10-25 20:14:39 +0500
committerholyfoot/hf@mysql.com/deer.(none) <>2006-10-25 20:14:39 +0500
commit4fb00857ca27d66fee465c85d882c7edf46ef828 (patch)
tree248f0c5b988b23156208cb6f1d2014539218eb9d /sql/item_timefunc.cc
parent001aaedddcd22cddc10bfc6f6e2f43d028c7f1ac (diff)
downloadmariadb-git-4fb00857ca27d66fee465c85d882c7edf46ef828.tar.gz
bug #19491 (CAST do DATETIME wrong result)
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index 30230005f6e..24a0d12ee9a 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -1294,17 +1294,6 @@ String *Item_date::val_str(String *str)
}
-int Item_date::save_in_field(Field *field, bool no_conversions)
-{
- TIME ltime;
- if (get_date(&ltime, TIME_FUZZY_DATE))
- return set_field_to_null(field);
- field->set_notnull();
- field->store_time(&ltime, MYSQL_TIMESTAMP_DATE);
- return 0;
-}
-
-
longlong Item_date::val_int()
{
DBUG_ASSERT(fixed == 1);