Bug #8049 | MULTI DELETE does not see aliased temporary tables | ||
---|---|---|---|
Submitted: | 20 Jan 2005 16:00 | Modified: | 21 Jan 2005 4:42 |
Reporter: | Fyodor Golos | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.9-standard | OS: | AMD64 |
Assigned to: | Dean Ellis | CPU Architecture: | Any |
[20 Jan 2005 16:00]
Fyodor Golos
[20 Jan 2005 16:46]
MySQL Verification Team
Duplicate for #7816
[20 Jan 2005 20:34]
Fyodor Golos
Are you sure about this issue being a duplicate of #7816? Are temporary tables created in a database different from current database? Some "virtual" database that holds temporary tables? Even so, second DELETE works just fine and the only difference from the first DELETE is not using table aliases. Does not seem to have anything to do with being in the "wrong" database when running a cross-database delete.
[20 Jan 2005 23:27]
MySQL Verification Team
Verified with BK source on Slackware Linux. Thank you for the bug report.
[21 Jan 2005 4:42]
Dean Ellis
If you alias the table, your DELETE must refer to the alias. ie: DELETE FROM a USING temp_a a, temp_b b WHERE a.a = b.b;