-
Notifications
You must be signed in to change notification settings - Fork 2.3k
don't be strict in test for warnings #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It's the first one that came to mind - I think every single one would be confusing as there's no "RELAXED_DATA_LENGTH" setting afaik. At least we use this one somewhere else... |
Yes to the parameter, sorry. |
What about Edit: Ignore this comment. It does the opposite of what you intended. |
Just tested it: for me, the test still fails in traditional mode |
So are we also introducing PTAL after LGTM? Implemented the dsn parameter - but it wasn't necessary to add it to DBTest. I like the way it looks now, no "quickfix" comment required. |
LGTM, SGTM, PTAL ... everything you want ;-) I'm still wondering why the invalid dates mode works... The documentation says nothing about other behaviour changes than allowing invalid date ranges. @xaprb ? :) |
But LGTM for now as a hotfix. We still can swap the sql mode later. |
IMO, the invalid dates mode works because it sets the SQL mode to something not including STRICT_TABLES or STRICT_TRANS_TABLES - which convert overflow warnigns to errors. TRADITIONAL includes STRICT_TRANS_TABLES. ALLOW_INVALID_DATES is the only "relaxed" mode I found which doesn't introduce syntax changes. |
don't be strict in test for warnings
Btw., my config if someone wants to reproduce it: I' using MySQL 5.6.10 (on OS X, installed via homebrew). From |
No description provided.