Bug #27880 | Bug with LEFT JOIN and TEMPORARY Tables | ||
---|---|---|---|
Submitted: | 17 Apr 2007 12:37 | Modified: | 17 Apr 2007 21:08 |
Reporter: | Martijn Korse | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.37 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | join, left join, table, temporary, temporary table |
[17 Apr 2007 12:37]
Martijn Korse
[17 Apr 2007 13:22]
Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.37, and inform about the results.
[17 Apr 2007 13:52]
Martijn Korse
Ok, i downloaded and installed the windows binary so i could check it on my desktop computer and i still get the same error.
[17 Apr 2007 19:50]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php You JOIN tables t1 and t2, but reference to table t3. Please read about JOIN syntax at http://dev.mysql.com/doc/refman/5.0/en/join.html
[17 Apr 2007 20:34]
Martijn Korse
"You JOIN tables t1 and t2" if with JOIN you mean INNER JOIN as in the WHERE, you are mistaken. In the FROM clause i specify: FROM test3 AS t3, test1 AS t1 so, test3 and test1. These tables i also specify in my WHERE clause: WHERE t3.ownerID=t1.memberID; Perfectly sound mysql code Apart from that i do a LEFT JOIN, where i join test2 on test3 Also perfectly sound mysql code. The fact that the exact same code runs smoothly on any 4.x server i can find (4 in total) also suggest this clearly is a bug.
[17 Apr 2007 21:08]
Sveta Smirnova
Please read chapter "Join Processing Changes in MySQL 5.0.12" from the page link to I provided in previous comment. Look special attention to paragraph which starts from "Previously, the comma operator (,) and JOIN both had the same precedence"