Bug #24610 | session SQL_MODE can affect other sessions through triggers | ||
---|---|---|---|
Submitted: | 27 Nov 2006 8:08 | Modified: | 11 Jan 2007 20:34 |
Reporter: | Giuseppe Maxia | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S4 (Feature request) |
Version: | 5.1.14,5.0.27 | OS: | Linux (Linux) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
Tags: | Docs, SQL_MODE, triggers |
[27 Nov 2006 8:08]
Giuseppe Maxia
[29 Nov 2006 9:23]
Giuseppe Maxia
After lots of discussion on this subject, it turns out that this is not a bug. However, it would be beneficial to add this example in the documentation, to show the risks of changing SQL mode.
[1 Dec 2006 9:34]
Stefan Hinz
In the documentation, we should use Giuseppe's new example: http://datacharmer.blogspot.com/2006/11/hidden-risks-of-sql-mode.html I guess we can copy it almost verbatim -- thanks, Giuseppe!
[11 Jan 2007 20:34]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. I have updated the manual to indicate that, as for stored routines, triggers execute with the sql_mode value in effect at the time of object creation. This is also true for events, so I have noted that as well.