Bug #29197 | Query cache and warnings | ||
---|---|---|---|
Submitted: | 19 Jun 2007 5:23 | Modified: | 1 Apr 2008 11:26 |
Reporter: | Lachezar Balev | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Query Cache | Severity: | S3 (Non-critical) |
Version: | 5.1.17, 5.0 BK, 4.1 BK | OS: | Any |
Assigned to: | Kristofer Pettersson | CPU Architecture: | Any |
[19 Jun 2007 5:23]
Lachezar Balev
[19 Jun 2007 6:40]
Sveta Smirnova
Thank you for the report. Verified as described.
[18 Jul 2007 22:19]
Oleksandr Byelkin
It looks like table is optimized out in this query (can be checked with help of EXPLAIN) and query cache do not caches queries without tables, so is does not look like bug.
[20 Jul 2007 5:29]
Lachezar Balev
Oleksandr, this is not exactly a bug, maybe it should be only documented. The reason is not because the table is optimized. It can be easily checked by adding some more rows in the example given above.
[24 Jul 2007 18:42]
Oleksandr Byelkin
Aster some more debugging it looks like I was wrong, the table is not optimized out, but closed after optimization. So QC do not see locked tables and thinks thatthere is no tables in the query. IMHO it is better to fix QC (check all query tables list instead of locked tables) then write tricky documentation.
[24 Jul 2007 21:39]
Oleksandr Byelkin
During fixing I found yet another cause why the query do not go to the cache: the query produce warning and QC do not store queries with warnings. I have no idea (maybe yet) how to make the query of such type without warning...