mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.9 into 10.10
This commit is contained in:
@ -654,3 +654,25 @@ SET time_zone=DEFAULT;
|
||||
#
|
||||
# End of 10.4 tests
|
||||
#
|
||||
#
|
||||
# MDEV-27101 Subquery using the ALL keyword on TIMESTAMP columns produces a wrong result
|
||||
#
|
||||
SET time_zone='Europe/Moscow';
|
||||
CREATE TABLE t1 (a TIMESTAMP NULL);
|
||||
SET timestamp=1288477526;
|
||||
/* this is summer time, earlier */
|
||||
INSERT INTO t1 VALUES (NOW());
|
||||
SET timestamp=1288477526+3599;
|
||||
/* this is winter time, later */
|
||||
INSERT INTO t1 VALUES (NOW());
|
||||
SELECT a, UNIX_TIMESTAMP(a) FROM t1 ORDER BY a;
|
||||
a UNIX_TIMESTAMP(a)
|
||||
2010-10-31 02:25:26 1288477526
|
||||
2010-10-31 02:25:25 1288481125
|
||||
SELECT a, UNIX_TIMESTAMP(a) FROM t1 WHERE a <= ALL (SELECT * FROM t1);
|
||||
a UNIX_TIMESTAMP(a)
|
||||
2010-10-31 02:25:26 1288477526
|
||||
SELECT a, UNIX_TIMESTAMP(a) FROM t1 WHERE a >= ALL (SELECT * FROM t1);
|
||||
a UNIX_TIMESTAMP(a)
|
||||
2010-10-31 02:25:25 1288481125
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user