diff options
author | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-01-31 02:08:41 +0100 |
---|---|---|
committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-01-31 02:08:41 +0100 |
commit | 2f47c306dd7d49a2a47270ce93cd81589266007f (patch) | |
tree | 3dc665ca18bc95c51377b65b10fca8f164ebcb2c /sql | |
parent | 6cfd0f25930fc0579c983e4507a4e57b938d4d58 (diff) | |
parent | 518cfea4836df56d232ba270995db83fa7655bb4 (diff) | |
download | mariadb-git-2f47c306dd7d49a2a47270ce93cd81589266007f.tar.gz |
auto-merge
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item.cc | 4 |
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(<ime)) - return set_field_to_null(field); + return set_field_to_null_with_conversions(field, 0); field->set_notnull(); return field->store_time(<ime, MYSQL_TIMESTAMP_TIME); } @@ -337,7 +337,7 @@ int Item::save_date_in_field(Field *field) { MYSQL_TIME ltime; if (get_date(<ime, 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(<ime, MYSQL_TIMESTAMP_DATETIME); } |