Bug #21261 | Insert into an updatable view with no WHERE clause requiring SELECT - Regression | ||
---|---|---|---|
Submitted: | 24 Jul 2006 23:17 | Modified: | 6 Sep 2006 23:31 |
Reporter: | Erica Moss | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S2 (Serious) |
Version: | 5.1 | OS: | Linux (Fedora core 5) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[24 Jul 2006 23:17]
Erica Moss
[11 Aug 2006 22:18]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/10322 ChangeSet@1.2246, 2006-08-12 02:14:56+04:00, evgen@sunlight.local +9 -0 Fixed bug#21261: Wrong access rights was required for an insert to a view SELECT right instead of INSERT right was required for an insert to a view instead. This change is done in fix for bug 20989. Its intention was to ask only SELECT right for all tables except the very first for a complex INSERT query. But that patch has done it in a wrong way and lead to asking a wrong access right for an insert to a view. The setup_tables_and_check_access() function now accepts two want_access parameters. One will be used for the first table and the second for other tables.
[17 Aug 2006 14:51]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/10587 ChangeSet@1.2262, 2006-08-17 18:50:53+04:00, evgen@moonbone.local +3 -0 ndb_condition_pushdown.result: Corrected test case result after fix for bug#18165 view.result, view.test: Corrected test case for bug#21261
[29 Aug 2006 13:23]
Evgeny Potemkin
Fixed in 5.0.25
[4 Sep 2006 11:39]
Evgeny Potemkin
Fixed in 5.1.12
[6 Sep 2006 23:31]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented bugfix in 5.0.25 and 5.1.12 changelogs.