summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <gvb@phoenix.(none)>2006-01-23 11:18:06 +0100
committerunknown <gvb@phoenix.(none)>2006-01-23 11:18:06 +0100
commitc56ae50732e600e0a96c2a083005ff5a53e510a3 (patch)
treee282d0c211c761b877c5f3f57346f9c5c8adaa09 /mysql-test
parentffe11393c9ce64a064faa2b85d3fb78de9adc013 (diff)
parente5f077f79a7872147a8858d353060ee08ffa5dcd (diff)
downloadmariadb-git-c56ae50732e600e0a96c2a083005ff5a53e510a3.tar.gz
Merge gboehn@bk-internal.mysql.com:/home/bk/mysql-4.1
into phoenix.(none):/data/mysql-4.1-BK
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/date_formats.result9
-rw-r--r--mysql-test/t/date_formats.test7
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/date_formats.result b/mysql-test/r/date_formats.result
index 34a2dedd976..014eeed27e7 100644
--- a/mysql-test/r/date_formats.result
+++ b/mysql-test/r/date_formats.result
@@ -464,3 +464,12 @@ d1 d2
02 February
01 January
drop table t1;
+select str_to_date( 1, NULL );
+str_to_date( 1, NULL )
+NULL
+select str_to_date( NULL, 1 );
+str_to_date( NULL, 1 )
+NULL
+select str_to_date( 1, IF(1=1,NULL,NULL) );
+str_to_date( 1, IF(1=1,NULL,NULL) )
+NULL
diff --git a/mysql-test/t/date_formats.test b/mysql-test/t/date_formats.test
index 6d501865d2c..78b4482a94a 100644
--- a/mysql-test/t/date_formats.test
+++ b/mysql-test/t/date_formats.test
@@ -268,4 +268,11 @@ insert into t1 (f1) values ("2005-01-01");
insert into t1 (f1) values ("2005-02-01");
select date_format(f1, "%m") as d1, date_format(f1, "%M") as d2 from t1 order by date_format(f1, "%M");
drop table t1;
+
+#
+# Bug #15828
+#
+select str_to_date( 1, NULL );
+select str_to_date( NULL, 1 );
+select str_to_date( 1, IF(1=1,NULL,NULL) );
# End of 4.1 tests