-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
strict mode causes mariadb 10.3.0 db connections to fail #635
Comments
10.2.6 fails, mostly, as well. Like the first will work, but running the code again will cause it to fail reliably |
10.1.25 works! So, there's something between the 10.1.25 and 10.2.6. |
Please stop using strict mode. |
That's not an option for dealing with mysql databases. |
To be more clear: there is a large number of significant issues that are never caught if you do not enable strict mode and strict mode is considered to be a thing you should always turn on. There is no way we could use this library without it. |
I think there may be some confusion here between go-sql-driver's "strict" option vs MariaDB's See this, from go-sql-driver's README: https://github.com/go-sql-driver/mysql/blob/master/README.md
|
No, that behavior of turning warnings into errors is common to MySQL client libraries and is recommended practice. |
(There's also no way in most versions of Go for a user of (For folks listening at home and confused by that: that's because |
Any reference? I didn't think it's common or recommended. |
No way?
|
I did not know about the system variables deal. Sorry!
Just to make sure I understand the situation: does that mean the driver currently doesn't report warnings that mysql gives at EOF? Does that include errors in EOFs, too, if they were STRICT_ALL_TABLES'ed? I'm definitely not as familiar with the protocol as you. Thanks! |
When
No. When error happens in servre-side, it is returned directly. No need to query
|
Fixed by #676 |
Using current HEAD (bf7f34f), code that enables
Config.Strict
will fail when trying to send queries to a mariadb 10.3.0 database. It returnsError 1158: Got an error reading communication packets
.The text was updated successfully, but these errors were encountered: