diff --git a/tests/engine_test.go b/tests/engine_test.go index 3436bbc7..8bac4474 100644 --- a/tests/engine_test.go +++ b/tests/engine_test.go @@ -14,6 +14,7 @@ import ( "xorm.io/xorm" "xorm.io/xorm/schemas" + _ "gitee.com/opengauss/openGauss-connector-go-pq" _ "gitee.com/travelliu/dm" _ "github.com/go-sql-driver/mysql" _ "github.com/jackc/pgx/v4/stdlib" diff --git a/tests/tests.go b/tests/tests.go index dfc04d09..8f3dfa99 100644 --- a/tests/tests.go +++ b/tests/tests.go @@ -66,7 +66,7 @@ func createEngine(dbType, connStr string) error { } db.Close() *ignoreSelectUpdate = true - case schemas.POSTGRES: + case schemas.POSTGRES, "opengauss": db, err := sql.Open(dbType, strings.ReplaceAll(connStr, "xorm_test", "postgres")) if err != nil { return err