Bug #64743 | SQL CACHE + JOINS not working | ||
---|---|---|---|
Submitted: | 23 Mar 2012 10:19 | Modified: | 23 Mar 2012 11:34 |
Reporter: | Lavesh Rawat | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Query Cache | Severity: | S1 (Critical) |
Version: | 5.5.21 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | cache, joins, MYSQL5.5 |
[23 Mar 2012 10:19]
Lavesh Rawat
[23 Mar 2012 10:57]
Valeriy Kravchuk
While this is really a change in behavior of 5.5 vs 5.1, our manual clearly describes this case (see http://dev.mysql.com/doc/refman/5.5/en/select.html): "Also, these options are not permitted in subqueries (including subqueries in the FROM clause), and SELECT statements in unions other than the first SELECT." So formally this is not a bug.
[23 Mar 2012 11:01]
Lavesh Rawat
Where exactly have u mentioned this in your manual and why this has been done ??
[23 Mar 2012 11:34]
Valeriy Kravchuk
I gave you URL to the manual page, describing details of SELECT, and test to search there. As change was made in 5.5.3, you can find explanation at http://dev.mysql.com/doc/refman/5.5/en/news-5-5-3.html: "The use of the SQL_CACHE and SQL_NO_CACHE options in SELECT statements now is checked more restrictively: 1) Previously, both options could be given in the same statement. This is no longer true; only one can be given. 2) Previously, these options could be given in SELECT statements that were not at the top-level. This is no longer true; the options are not permitted in subqueries (including subqueries in the FROM clause, and SELECT statements in unions other than the first SELECT. (Bug #35020)"