diff options
author | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-01-31 02:07:36 +0100 |
---|---|---|
committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-01-31 02:07:36 +0100 |
commit | 518cfea4836df56d232ba270995db83fa7655bb4 (patch) | |
tree | 632f3363d454ba44138112ba7cf201289f93a872 /sql | |
parent | bb31fd599252de83cd87192c95dca1196258a5b0 (diff) | |
parent | ce563480b774f912ab698efe0a71e77b9360893d (diff) | |
download | mariadb-git-518cfea4836df56d232ba270995db83fa7655bb4.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 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(<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); } @@ -331,7 +331,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); } |