Skip to content

Commit

Permalink
feat: disable PrepareStmt globally
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jan 13, 2022
1 parent 2976f27 commit bcc2d48
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/gormx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func Config(v *viper.Viper, configureFn ...ConfigureFn) {
// MySQLDbConfig for mysql config
func MySQLDbConfig(cfg DbConfig) *gorm.DB {
db, err := gorm.Open(mysql.Open(cfg.Uri), &gorm.Config{
PrepareStmt: true,
QueryFields: cfg.QueryFields,
CreateBatchSize: cfg.CreateBatchSize,
NamingStrategy: schema.NamingStrategy{
Expand Down

0 comments on commit bcc2d48

Please sign in to comment.