diff --git a/scan.go b/scan.go index 3a753dca..0a26ce4b 100644 --- a/scan.go +++ b/scan.go @@ -317,4 +317,4 @@ func Scan(rows Rows, db *DB, mode ScanMode) { if db.RowsAffected == 0 && db.Statement.RaiseErrorOnNotFound && db.Error == nil { db.AddError(ErrRecordNotFound) } -} \ No newline at end of file +} diff --git a/tests/connpool_test.go b/tests/connpool_test.go index fbae2294..42e029bc 100644 --- a/tests/connpool_test.go +++ b/tests/connpool_test.go @@ -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) } diff --git a/tests/go.mod b/tests/go.mod index 0160b2a6..bf59e8d2 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -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