summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorTatiana A. Nurnberg <azundris@mysql.com>2009-01-31 02:08:41 +0100
committerTatiana A. Nurnberg <azundris@mysql.com>2009-01-31 02:08:41 +0100
commit2f47c306dd7d49a2a47270ce93cd81589266007f (patch)
tree3dc665ca18bc95c51377b65b10fca8f164ebcb2c /sql
parent6cfd0f25930fc0579c983e4507a4e57b938d4d58 (diff)
parent518cfea4836df56d232ba270995db83fa7655bb4 (diff)
downloadmariadb-git-2f47c306dd7d49a2a47270ce93cd81589266007f.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 2ee6de97ad0..6b786549dfc 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -327,7 +327,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);
}
@@ -337,7 +337,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);
}