summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_sapdb.test
diff options
context:
space:
mode:
authorunknown <tnurnberg@sin.intern.azundris.com>2007-10-12 11:46:48 +0200
committerunknown <tnurnberg@sin.intern.azundris.com>2007-10-12 11:46:48 +0200
commit91f6d169a667721dabb398cefb56d687fb0e57e2 (patch)
tree82b0ba8c6fa3878dd5d6f9923ac6dce9e838d945 /mysql-test/t/func_sapdb.test
parent5a6b519a2f3b6a2ac3e6375b2111cdfe43a5aff3 (diff)
downloadmariadb-git-91f6d169a667721dabb398cefb56d687fb0e57e2.tar.gz
Bug#30951: makedate returns different results depending on version of mysql
makedate() will fold years below 100 into the 1970-2069 range. CS removes code that also wrongly folded years between 100 and 200 into that range, which should be left unchanged. Backport from 5.1. mysql-test/r/func_sapdb.result: Show that makedate() works correctly for 100 <= year < 200. mysql-test/t/func_sapdb.test: Show that makedate() works correctly for 100 <= year < 200. sql-common/my_time.c: Remove unnecessary date magic. Syncs behaviour with 5.1+ and manual.
Diffstat (limited to 'mysql-test/t/func_sapdb.test')
-rw-r--r--mysql-test/t/func_sapdb.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/func_sapdb.test b/mysql-test/t/func_sapdb.test
index bb65cbaa774..5db6db70e8f 100644
--- a/mysql-test/t/func_sapdb.test
+++ b/mysql-test/t/func_sapdb.test
@@ -47,6 +47,7 @@ select makedate(1997,1);
select makedate(1997,0);
select makedate(9999,365);
select makedate(9999,366);
+select makedate(100,1);
#Time functions