#At file:///home/kgeorge/mysql/work/B55565-5.5-merge/ based on revid:alik@stripped
3171 Georgi Kodinov 2010-08-16 [merge]
merge
modified:
mysql-test/r/func_time.result
mysql-test/t/func_time.test
=== modified file 'mysql-test/r/func_time.result'
--- a/mysql-test/r/func_time.result 2010-02-24 13:52:27 +0000
+++ b/mysql-test/r/func_time.result 2010-08-16 07:11:57 +0000
@@ -1305,4 +1305,12 @@ date_sub("0069-01-01 00:00:01",INTERVAL
select date_sub("0169-01-01 00:00:01",INTERVAL 2 SECOND);
date_sub("0169-01-01 00:00:01",INTERVAL 2 SECOND)
0168-12-31 23:59:59
+CREATE TABLE t1(a DOUBLE NOT NULL);
+INSERT INTO t1 VALUES (0),(9.216e-096);
+# should not crash
+SELECT 1 FROM t1 ORDER BY @x:=makedate(a,a);
+1
+1
+1
+DROP TABLE t1;
End of 5.1 tests
=== modified file 'mysql-test/t/func_time.test'
--- a/mysql-test/t/func_time.test 2010-02-17 09:18:17 +0000
+++ b/mysql-test/t/func_time.test 2010-08-16 07:11:57 +0000
@@ -821,4 +821,15 @@ select date_sub("0069-01-01 00:00:01",IN
select date_sub("0169-01-01 00:00:01",INTERVAL 2 SECOND);
+#
+# Bug #55565: debug assertion when ordering by expressions with user
+# variable assignments
+#
+
+CREATE TABLE t1(a DOUBLE NOT NULL);
+INSERT INTO t1 VALUES (0),(9.216e-096);
+--echo # should not crash
+SELECT 1 FROM t1 ORDER BY @x:=makedate(a,a);
+DROP TABLE t1;
+
--echo End of 5.1 tests
Attachment: [text/bzr-bundle] bzr/georgi.kodinov@oracle.com-20100816071157-2d8tobgdbyv2wqqf.bundle
| Thread |
|---|
| • bzr commit into mysql-5.5-merge branch (Georgi.Kodinov:3171) | Georgi Kodinov | 16 Aug |