Skip to content

Commit

Permalink
mysql: Update sql mode default (pingcap#11)
Browse files Browse the repository at this point in the history
* mysql: Add NO_AUTO_CREATE_USER detection
* mysql: Update Default SQL Mode
* Include No_auto_create_user and only_full_group_by
  • Loading branch information
morgo authored and tiancaiamao committed Nov 7, 2018
1 parent 56952d6 commit ce46b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ var AllColumnPrivs = []PrivilegeType{SelectPriv, InsertPriv, UpdatePriv}
const AllPrivilegeLiteral = "ALL PRIVILEGES"

// DefaultSQLMode for GLOBAL_VARIABLES
const DefaultSQLMode = "STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
const DefaultSQLMode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

// DefaultLengthOfMysqlTypes is the map for default physical length of MySQL data types.
// See http://dev.mysql.com/doc/refman/5.7/en/storage-requirements.html
Expand Down

0 comments on commit ce46b55

Please sign in to comment.