summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorTatiana A. Nurnberg <azundris@mysql.com>2009-01-31 02:07:36 +0100
committerTatiana A. Nurnberg <azundris@mysql.com>2009-01-31 02:07:36 +0100
commit518cfea4836df56d232ba270995db83fa7655bb4 (patch)
tree632f3363d454ba44138112ba7cf201289f93a872 /sql
parentbb31fd599252de83cd87192c95dca1196258a5b0 (diff)
parentce563480b774f912ab698efe0a71e77b9360893d (diff)
downloadmariadb-git-518cfea4836df56d232ba270995db83fa7655bb4.tar.gz
auto-merge
Diffstat (limited to 'sql')
-rw-r--r--sql/item.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.cc b/sql/item.cc
index b67639d70b2..fc5ee3d4d6a 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -321,7 +321,7 @@ int Item::save_time_in_field(Field *field)
{
MYSQL_TIME ltime;
if (get_time(&ltime))
- return set_field_to_null(field);
+ return set_field_to_null_with_conversions(field, 0);
field->set_notnull();
return field->store_time(&ltime, MYSQL_TIMESTAMP_TIME);
}
@@ -331,7 +331,7 @@ int Item::save_date_in_field(Field *field)
{
MYSQL_TIME ltime;
if (get_date(&ltime, TIME_FUZZY_DATE))
- return set_field_to_null(field);
+ return set_field_to_null_with_conversions(field, 0);
field->set_notnull();
return field->store_time(&ltime, MYSQL_TIMESTAMP_DATETIME);
}