-
Notifications
You must be signed in to change notification settings - Fork 549
tests: Invalid DATETIME test fails with mysql >= 8.0.24 #1208
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
Comments
This is tricky, because it seems that casting to datetime pretty much never error out anymore, but just shows a warning:
It's really weird because MySQL became stricter lately... |
Actually it was already a warning on 5.7, so I don't think this change is the root cause. Looking at the source, it's the mysql2 gem that raise these errors explictly, that part of the code must be broken. |
Ok, so on 5.7, the client library do return the string that failed to parse, as in On 8.0 however I'll dig a bit more but I don't think we can actually preserve that old behavior. |
The test suite is failing when running against MySQL >= 8.0.24 with:
This is because according to the release notes (https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-24.html):
The
statement_spec.rb
andresult_spec.rb
files need to be updated with a bad date that still generates an error, e.g.2000-01-00
.The text was updated successfully, but these errors were encountered: