diff --git a/db.go b/db.go index 86bc6efb8..01f26a8eb 100644 --- a/db.go +++ b/db.go @@ -16,13 +16,13 @@ func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) { case "mssql": driver = "sqlserver" case "redshift": - driver = "postgres" + driver = "pgx" case "tidb": driver = "mysql" } switch driver { - case "postgres", "pgx", "sqlite3", "sqlite", "mysql", "sqlserver", "clickhouse", "vertica", "azuresql": + case "pgx", "sqlite3", "sqlite", "mysql", "sqlserver", "clickhouse", "vertica", "azuresql": return sql.Open(driver, dbstring) default: return nil, fmt.Errorf("unsupported driver %s", driver)