summaryrefslogtreecommitdiff
path: root/mysql-test/r/type_datetime.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/type_datetime.result')
-rw-r--r--mysql-test/r/type_datetime.result17
1 files changed, 16 insertions, 1 deletions
diff --git a/mysql-test/r/type_datetime.result b/mysql-test/r/type_datetime.result
index 811fbacaf59..05cdcf7e256 100644
--- a/mysql-test/r/type_datetime.result
+++ b/mysql-test/r/type_datetime.result
@@ -573,7 +573,7 @@ CAST('NULL' AS DATE) < CAST('2008-01-01' AS DATE) n7,
CAST('2008-01-01' AS DATE) < CAST('NULL' AS DATE) n8,
CAST('NULL' AS DATE) < CAST('NULL' AS DATE) n9;
n1 n2 n3 n4 n5 n6 n7 n8 n9
-0 0 1 NULL NULL NULL NULL NULL NULL
+0 0 1 1 1 0 1 0 0
Warnings:
Warning 1292 Incorrect datetime value: 'NULL'
Warning 1292 Incorrect datetime value: 'NULL'
@@ -585,6 +585,8 @@ Warning 1292 Incorrect datetime value: 'NULL'
Warning 1292 Incorrect datetime value: 'NULL'
Warning 1292 Incorrect datetime value: 'NULL'
Warning 1292 Incorrect datetime value: 'NULL'
+Warning 1292 Incorrect datetime value: 'NULL'
+Warning 1292 Incorrect datetime value: 'NULL'
End of 5.0 tests
set @org_mode=@@sql_mode;
create table t1 (da date default '1962-03-03 23:33:34', dt datetime default '1962-03-03');
@@ -651,6 +653,19 @@ SELECT * FROM t1;
dt1
DROP TABLE t1;
End of 5.1 tests
+create table t1 (d date, t time) engine=myisam;
+insert into t1 values ('2000-12-03','22:55:23'),('2008-05-03','10:19:31');
+select case when d = '2012-12-12' then d else t end as cond, group_concat( d ) from t1 group by cond;
+cond group_concat( d )
+0000-00-00 00:00:00 2000-12-03
+0000-00-00 00:00:00 2008-05-03
+Warnings:
+Warning 1292 Incorrect datetime value: '22:55:23'
+Warning 1292 Incorrect datetime value: '10:19:31'
+Warning 1292 Incorrect datetime value: '22:55:23'
+Warning 1292 Incorrect datetime value: '10:19:31'
+drop table t1;
+End of 5.3 tests
#
# Start of 5.5 tests
#