Bug #79678 | Server sql_mode replaced with ANSI only by the connector | ||
---|---|---|---|
Submitted: | 16 Dec 2015 17:54 | Modified: | 8 Nov 2022 21:13 |
Reporter: | Lionel Najman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 6.9.8 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | SQL_MODE, stric |
[16 Dec 2015 17:54]
Lionel Najman
[19 Jan 2016 7:52]
Chiranjeevi Battula
Hello Lionel Najman, Thank you for the bug report. Verified based on internal discussion with dev's. Thanks, Chiranjeevi.
[15 May 2017 20:36]
Michael Hogue
Any updates on this? It's been over 17 months. Is there any way to provide access to the bug notes on what the original issue fixes? Bug #16494585. (Per the connector net release notes: A workaround was to set global sql_mode = "ANSI";. Bug #16494585) The fact that the sql_mode is being changed to ANSI (adding ANSI and removing STRICT TRANS TABLES) is so bad in our environment that we're considering launch with a customized build of the Connector Net where we've patched it ourselves. Whatever bug #16494585 is, if it is benign in some environments, could we not get a connector net connection string option or something to disable the damaging behavior (to tell the Connector Net that the issue fixed in bug 16494585 doesn't affect our environment, and we want it to just leave our server sql mode alone?) This seems like it was a breaking change intentionally released into the wild without a way to disable it (and I can't tell what the changing of the sql mode is actually fixing.) Thanks for any info that can be provided.
[8 Nov 2022 21:13]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 8.0.32 release, and here's the proposed changelog entry from the documentation team: Connector/NET sets the @@SESSION.sql_mode value to 'ANSI' without considering the current value. This issue now is fixed by appending 'ANSI' mode to the current @@SESSION.sql_mode value. Thank you for the bug report.
[10 Nov 2022 18:34]
Daniel Valdez
Posted by developer: In the final patch for this fix, it was decided that setting any value to "sql_mode" was not necessary, so the instruction was removed.
[14 Nov 2022 16:56]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL Connector/NET 8.0.32 release, and here's the proposed changelog entry from the documentation team: When Connector/NET set the @@SESSION.sql_mode value to 'ANSI', it did so without considering the current value. Thank you for the bug report.