Skip to content

Commit

Permalink
fix(storage): remove dangerous op
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Apr 3, 2021
1 parent 4457689 commit 0ec0103
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions storage/data/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ func (d *SQLDatabase) Init() error {
")"); err != nil {
return err
}
// change settings
_, err := d.db.Exec("SET GLOBAL sql_mode=\"" +
"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO," +
"NO_ENGINE_SUBSTITUTION\"")
return err
return nil
}

func (d *SQLDatabase) Close() error {
Expand Down

0 comments on commit 0ec0103

Please sign in to comment.