Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove strict mode #676
Remove strict mode #676
Conversation
See also (and please improve) https://github.com/go-sql-driver/mysql/wiki/strict-mode |
LGTM. Nice simplification. |
if !isBool { | ||
return errors.New("invalid bool value: " + value) | ||
} | ||
return errors.New("strict mode has been removed. See https://github.com/go-sql-driver/mysql/wiki/strict-mode") |
julienschmidt
Sep 30, 2017
Author
Member
Should this panic?
Should this panic?
It was removed from the upstream mysql package in go-sql-driver/mysql#676
compilation failed with: driver: fix: driver/mysql/mysql.go:89:23: undefined: mysql.MySQLWarnings MySQLWarnings was removed from the mysql driver (go-sql-driver/mysql#676), remove it from migrate
compilation failed with: driver: fix: driver/mysql/mysql.go:89:23: undefined: mysql.MySQLWarnings MySQLWarnings was removed from the mysql driver (go-sql-driver/mysql#676), remove it from migrate
compilation failed with: driver: fix: driver/mysql/mysql.go:89:23: undefined: mysql.MySQLWarnings MySQLWarnings was removed from the mysql driver (go-sql-driver/mysql#676), remove it from migrate
Description
We know for a while already that our strict mode can cause a lot of problems and is not safe to use. See #556 #602 #635
A proper server-side mode should be set instead of this driver-side hack.
This PR removes the strict mode completely.
Checklist