mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-30256 Wrong result (missing rows) upon join with empty table
The problem was an assignment in test_quick_select() that flagged empty tables with "Impossible where". This test was however wrong as it didn't work correctly for left join. Removed the test, but added checking of empty tables in DELETE and UPDATE to get similar EXPLAIN as before. The new tests is a bit more strict (better) than before as it catches all cases of empty tables in single table DELETE/UPDATE.
This commit is contained in:
@ -63,6 +63,7 @@ c27 TEXT,
|
||||
c28 TEXT,
|
||||
primary key (pk)
|
||||
);
|
||||
insert into t1 (pk) values (1),(2),(3);
|
||||
CALL mtr.add_suppression("Out of sort memory");
|
||||
DELETE IGNORE FROM t1 ORDER BY c26,c7,c23,c4,c25,c5,c20,
|
||||
c19,c21,c8,c1,c27,c28,c3,c9,c22,c24,c6,c2,pk LIMIT 2;
|
||||
|
Reference in New Issue
Block a user