<p dir="ltr">Ben,</p>
<p dir="ltr">thanks for taking this to the list. Apologies for my brevity and for HTML, I'm on a moving train and Android Gmail is kinda stupid. :)</p>
<p dir="ltr">On Jan 23, 2014 6:46 PM, "Ben Nemec" <<a href="mailto:openstack@nemebean.com">openstack@nemebean.com</a>> wrote:<br>
><br>
> A while back a change (<a href="https://review.openstack.org/#/c/47820/">https://review.openstack.org/#/c/47820/</a>) was made to allow enabling mysql traditional mode, which tightens up mysql's input checking to disallow things like silent truncation of strings that exceed the column's allowed length and invalid dates (as I understand it).<br>
><br>
> IMHO, some compelling arguments were made that we should always be using traditional mode and as such we started logging a warning if it was not enabled. It has recently come to my attention (<a href="https://review.openstack.org/#/c/68474/">https://review.openstack.org/#/c/68474/</a>) that not everyone agrees, so I wanted to bring it to the list to get as wide an audience for the discussion as possible and hopefully come to a consensus so we don't end up having this discussion every few months.</p>
<p dir="ltr">For the record, I obviously am all in favor of avoiding data corruption, although it seems not everyone agrees that TRADITIONAL is necessarily the preferable mode. But that aside, if Oslo decides that any particular mode is required, it should just go ahead and set it, rather than log a warning that the user can't possibly fix.</p>
<p dir="ltr">> I remain of the opinion that traditional mode is a good thing and we _should_ be enabling it. I would call silent truncation and bogus date values bugs that should be fixed, but maybe there are other implications of this mode that I'm not aware of.<br>
><br>
> It was also pointed out that the warning is logged even if the user forces traditional mode through my.cnf. While this certainly solves the underlying problem, it doesn't change the fact that the application was trying to do something bad. We tried to make it clear in the log message that this is a developer problem and the user needs to pester the developer to enable the mode, but maybe there's more discussion that needs to go on there as well.</p>
<p dir="ltr">Hence my proposal to make this a config option and actually set the mode on connect. To make the patch as un-invasive as possible, the default for that option is currently empty, but if it seems prudent to set TRADITIONAL or STRICT_ALL_TABLES instead, I'll be happy to fix the patch up accordingly.</p>
<p dir="ltr">Cheers,<br>
Florian</p>