394ad895ec
64-bit archs and apply a patch from upstream to properly fix the regression. from Brad (maintainer)
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
$OpenBSD: patch-mysql-test_r_func_time_result,v 1.1 2011/01/11 11:03:03 ajacoutot Exp $
|
|
--- mysql-test/r/func_time.result.orig Fri Jan 7 19:17:01 2011
|
|
+++ mysql-test/r/func_time.result Fri Jan 7 19:18:34 2011
|
|
@@ -1301,6 +1301,17 @@ SELECT '2008-02-18' + INTERVAL 1 FRAC_SECOND;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FRAC_SECOND' at line 1
|
|
SELECT '2008-02-18' - INTERVAL 1 FRAC_SECOND;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FRAC_SECOND' at line 1
|
|
+#
|
|
+# Bug #52315 part 2 : utc_date() crashes when system time > year 2037
|
|
+#
|
|
+SET TIMESTAMP=-147490000;
|
|
+SELECT UTC_TIMESTAMP();
|
|
+SET TIMESTAMP=2147483648;
|
|
+SELECT UTC_TIMESTAMP();
|
|
+SET TIMESTAMP=2147483646;
|
|
+SELECT UTC_TIMESTAMP();
|
|
+SET TIMESTAMP=2147483647;
|
|
+SELECT UTC_TIMESTAMP();
|
|
End of 5.0 tests
|
|
select date_sub("0050-01-01 00:00:01",INTERVAL 2 SECOND);
|
|
date_sub("0050-01-01 00:00:01",INTERVAL 2 SECOND)
|