Bug #20977 confusing results after setting 'updatable_views_with_limit' to 'NO'
| Submitted: | 11 Jul 2006 22:07 | Modified: | 10 Aug 2006 16:01 |
|---|---|---|---|
| Reporter: | Erica Moss | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Views | Severity: | S3 (Non-critical) |
| Version: | 5.1.12 | OS: | Linux (Fedora core 5) |
| Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[11 Jul 2006 22:07]
Erica Moss
[4 Aug 2006 14:24]
Georgi Kodinov
It is a poor documentation piece indeed. Here (http://dev.mysql.com/tech-resources/articles/mysql-views.pdf) is a great white paper by Trudy Pelzer about views in general. She talks about 'updatable_views_with_limit' in great detail and explains all possible cases with examples starting at page 20.
[10 Aug 2006 16:01]
Paul DuBois
Trudy says: I suggest the wording be changed to something like: "This variable controls whether updates to a view can be made when the view does 'NOT' contain all columns of the primary key defined in the underlying table, if the update statement contains a LIMIT clause." Note, I say "contains" and not "references" as Eric suggests. This is because a view can refer to an underlying column (e.g. in a WHERE clause) without that column actually being part of the view. For the purposes of this variable, the column(s) must actually be part of the view. I will update the documentation with Trudy's suggested wording.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.