delete on derived table succeeds erroneously
Bug #311111 reported by
Monty Taylor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Invalid
|
Critical
|
Monty Taylor |
Bug Description
CREATE TABLE `t1` (
`N` int NOT NULL default '0',
`M` int default '0'
) ENGINE=MyISAM;
delete P1.*,P2.* from `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N;
Succeeds. This isn't such a good thing.
Changed in drizzle: | |
assignee: | nobody → mordred |
milestone: | none → aloha |
Changed in drizzle: | |
status: | Confirmed → Invalid |
To post a comment you must log in.
Not only is this a critical bug, it apparently introduces behaviour (feature?) that MySQL doesn't have..the ability to use a self-join for a DELETE.
This is odd that this succeeds...