[MDEV-6213] Query cache is not invalidated on cascade delete when database name contains special symbols Created: 2014-05-06 Updated: 2015-12-16 Resolved: 2015-12-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Query Cache, Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.0.10 |
| Fix Version/s: | 10.0.15, 10.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Sprint: | 10.0.20 |
| Description |
|
Originally reported by leo.unglaub on IRC. Test case:
Result (the row is returned while in fact the table is already empty):
The problem appeared in MySQL 5.6 with the following revision:
|
| Comments |
| Comment by Elena Stepanova [ 2014-05-06 ] | ||||||||||||||||||||||||||||||||||
|
Assigning to sanja – even although it's an upstream but, maybe you'll want to fix it your own way. | ||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2014-05-09 ] | ||||||||||||||||||||||||||||||||||
|
It is problem of not storing two variants of table names with special characters (escaped and non-escaped) and one parts of server uses escaped names other non-escaped (higher level). | ||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2014-05-09 ] | ||||||||||||||||||||||||||||||||||
|
innodb sends escaped db name but QC operate with unescaped. | ||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2014-05-09 ] | ||||||||||||||||||||||||||||||||||
|
commited for review: | ||||||||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2014-09-22 ] | ||||||||||||||||||||||||||||||||||
|
ok? should be close? | ||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2014-10-09 ] | ||||||||||||||||||||||||||||||||||
|
no, not yet. it was reviewed, but is not pushed yet. | ||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-11-16 ] | ||||||||||||||||||||||||||||||||||
|
Still reproducible on 10.0.14+.
| ||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-12-15 ] | ||||||||||||||||||||||||||||||||||
|
Upstream bugfix is accepted already the bug is gone. | ||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-12-16 ] | ||||||||||||||||||||||||||||||||||
|
Re-opening for a moment to fix fields. | ||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-12-16 ] | ||||||||||||||||||||||||||||||||||
|
Fixed in 10.0.15 by the merge of XtraDB 5.6.21 (and some time earlier for InnoDB plugin):
|