tests mariadb with returning support

This commit is contained in:
Jinzhu 2022-10-08 20:48:22 +08:00
parent e93dc3426e
commit 2c56954cb1
3 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ func TestConnPoolWrapper(t *testing.T) {
}
}()
db, err := gorm.Open(mysql.New(mysql.Config{Conn: conn}))
db, err := gorm.Open(mysql.New(mysql.Config{Conn: conn, DisableWithReturning: true}))
if err != nil {
t.Fatalf("Should open db success, but got %v", err)
}

View File

@ -8,7 +8,7 @@ require (
github.com/jinzhu/now v1.1.5
github.com/lib/pq v1.10.7
golang.org/x/crypto v0.0.0-20221005025214-4161e89ecf1b // indirect
gorm.io/driver/mysql v1.4.0
gorm.io/driver/mysql v1.4.1
gorm.io/driver/postgres v1.4.4
gorm.io/driver/sqlite v1.4.1
gorm.io/driver/sqlserver v1.4.0