summaryrefslogtreecommitdiff
path: root/mysql-test/r/cast.result
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-09-29 20:12:57 +0200
committerSergei Golubchik <sergii@pisem.net>2011-09-29 20:12:57 +0200
commit829b1747f9acc3dee0061b6bd4ebaeb38bd7f2f2 (patch)
tree9d17482559f0b4a0baf1eea0cf05d28a2eca3864 /mysql-test/r/cast.result
parentaf3a05dfbec291c256dc22aea6993822fa93af5e (diff)
downloadmariadb-git-829b1747f9acc3dee0061b6bd4ebaeb38bd7f2f2.tar.gz
make sure that cast(... as date) returns a valid date, as specified by the caller.
make Item::send() request a date according to the current SQL mode limitations.
Diffstat (limited to 'mysql-test/r/cast.result')
-rw-r--r--mysql-test/r/cast.result5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/cast.result b/mysql-test/r/cast.result
index 877a6badc16..2576fe8fa63 100644
--- a/mysql-test/r/cast.result
+++ b/mysql-test/r/cast.result
@@ -733,3 +733,8 @@ select cast(f1 as unsigned), cast(f2 as unsigned), cast(f3 as unsigned) from t1;
cast(f1 as unsigned) cast(f2 as unsigned) cast(f3 as unsigned)
112233 20111213 20111213112233
drop table t1;
+SELECT CAST(TIME('10:20:30') AS DATE) + INTERVAL 1 DAY;
+CAST(TIME('10:20:30') AS DATE) + INTERVAL 1 DAY
+NULL
+Warnings:
+Warning 1292 Truncated incorrect date value: '0000-00-00'