diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-08-29 17:55:59 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-08-29 17:55:59 +0200 |
commit | 3444e8e9254070f836488dae12b5c825cc9c563f (patch) | |
tree | ad216f2ff4a45a1d6894e807f13ecdf40e3d4c5b /mysql-test/r/adddate_454.result | |
parent | a44331ab3407488368c9984258ce4c3160872816 (diff) | |
download | mariadb-git-3444e8e9254070f836488dae12b5c825cc9c563f.tar.gz |
MDEV-454 Addition of a time interval reduces the resulting value
1. Field_newdate::get_date should refuse to return a date with zeros when
TIME_NO_ZERO_IN_DATE is set, not when TIME_FUZZY_DATE is unset
2. Item_func_to_days and Item_date_add_interval can only work with valid dates,
no zeros allowed.
Diffstat (limited to 'mysql-test/r/adddate_454.result')
-rw-r--r-- | mysql-test/r/adddate_454.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/adddate_454.result b/mysql-test/r/adddate_454.result new file mode 100644 index 00000000000..0993cdce32c --- /dev/null +++ b/mysql-test/r/adddate_454.result @@ -0,0 +1,10 @@ +create table t1 (d date); +insert into t1 values ('2012-00-00'); +select * from t1; +d +2012-00-00 +update t1 set d = adddate(d, interval 1 day); +select * from t1; +d +NULL +drop table t1; |