| Bug #42415 | UPDATE with LIMIT clause unsafe for statement format even when ORDER BY PK | ||
|---|---|---|---|
| Submitted: | 28 Jan 13:06 | Modified: | 24 Jun 17:41 |
| Reporter: | Vemund Østgaard | ||
| Status: | Closed | ||
| Category: | Server: Replication | Severity: | S3 (Non-critical) |
| Version: | 5.1.30 | OS: | Any |
| Assigned to: | Zhenxing He | Target Version: | 5.1+ |
| Triage: | Triaged: D2 (Serious) / R4 (High) / E4 (High) | ||
[28 Jan 13:06]
Vemund Østgaard
[7 Feb 22:18]
Mark Plomer
Yes, and not only if the Primary Key field(s) are in ORDER BY, but also if PK is in WHERE clause, then an additional LIMIT does not make the statement insecure. Some applications like phpMyAdmin adds a "LIMIT 1" to each statement event if the PK is in WHERE clause and generates a lot of warnings.
[6 May 11:28]
Lars Thalmann
On the replication architecture team meeting today, the following was decided: DECISION: - For BUG#42415, we will change the warning message and make sure the manual has correct text about a) what safe means, b) when the warning is issued. - After this, the bug will be closed as "Won't fix" DECISION: - The warning message "Statement is not safe to log in statement format." should be changed to "The statement may not be safe to log in statement format". - Document in the manual that: "Note that the decision on whether a statement is safe is heuristic. This means that the server will switch (if format is MIXED) to row-based logging for statements that it cannot guarantee that they are safe to log in statement-based format."
[7 May 8:48]
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/73556
[19 May 10:03]
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/74458
[20 May 10:28]
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/74544
[20 May 12:30]
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/74576 2895 He Zhenxing 2009-05-20 Post fix of result file after push of BUG#42415
[28 May 10:18]
Bugs System
Pushed into 5.1.36 (revid:joro@sun.com-20090528073639-yohsb4q1jzg7ycws) (version source revid:matthias.leich@sun.com-20090520195829-2q0xhtjqt4gc8htf) (merge vers: 5.1.36) (pib:6)
[28 May 16:33]
Jon Stephens
Documented bugfix in the 5.1.36 changelog as follows:
The warning "Statement is not safe to log in statement format",
issued in situations when it cannot be determined whether a
statement can be written reliably to the binary log, has been
changed to "Statement may not be safe to log in statement
format".
Also updated "Binary Logging Formats" with info contained in comments from Lars and
others.
Set NDI status, waiting for post-5.1 push.
[28 May 17:39]
Jon Stephens
Commit with the documentation changes is here:http://lists.mysql.com/commits/75164
[17 Jun 21:25]
Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090616183122-chjzbaa30qopdra9) (version source revid:matthias.leich@sun.com-20090520192627-94166m3dcjv48a6g) (merge vers: 6.0.12-alpha) (pib:11)
[24 Jun 17:41]
Jon Stephens
Bugfix also documented in the 5.4.4 changelog/5.4 Manual. Closed.
[13 Aug 0:06]
Paul DuBois
Noted in 5.4.2 changelog because next 5.4 version will be 5.4.2 and not 5.4.4.
[13 Aug 0:07]
Paul DuBois
Noted in 5.4.2 changelog because next 5.4 version will be 5.4.2 and not 5.4.4.
[15 Aug 0:55]
Paul DuBois
Ignore previous comment about 5.4.2.
[15 Aug 0:57]
Paul DuBois
Ignore previous comment about 5.4.2.
[26 Aug 15:46]
Bugs System
Pushed into 5.1.37-ndb-7.0.8 (revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[26 Aug 15:46]
Bugs System
Pushed into 5.1.37-ndb-6.3.27 (revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (version source revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (merge vers: 5.1.37-ndb-6.3.27) (pib:11)
[26 Aug 15:48]
Bugs System
Pushed into 5.1.37-ndb-6.2.19 (revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (version source revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (merge vers: 5.1.37-ndb-6.2.19) (pib:11)
[27 Aug 18:33]
Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20090827163030-6o3kk6r2oua159hr) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[7 Oct 16:35]
Paul DuBois
The 5.4 fix has been pushed to 5.4.2.
