mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fixed by the patch for LP bug 798621.
This commit is contained in:
@@ -464,3 +464,16 @@ a b a
|
||||
255 8 8
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# LP bug #800085: crash with a query using a simple derived table
|
||||
# (fixed by the patch for bug 798621)
|
||||
#
|
||||
CREATE TABLE t1 (f1 int, f2 varchar(32)) ;
|
||||
INSERT INTO t1 VALUES (NULL,'j'), (8,'c');
|
||||
CREATE TABLE t2 (f1 int);
|
||||
INSERT INTO t2 VALUES (1), (5);
|
||||
SELECT DISTINCT t.f1 FROM (SELECT * FROM t1) AS t, t2
|
||||
WHERE t.f2='s' AND t.f2 LIKE '%a%' OR t.f1<>0 ORDER BY t.f2;
|
||||
f1
|
||||
8
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
Reference in New Issue
Block a user