Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: remove dup codes (#12386)

p0ny7f08cc2443a3
diff --git a/backend/plugin/db/pg/pg.go b/backend/plugin/db/pg/pg.go
index 9f5264b00c..d73579b5e3 100644
--- a/backend/plugin/db/pg/pg.go
+++ b/backend/plugin/db/pg/pg.go
@@ -684,10 +684,6 @@ func (driver *Driver) QueryConn(ctx context.Context, conn *sql.Conn, statement s
if len(singleSQLs) == 0 {
return nil, nil
}
- singleSQLs = base.FilterEmptySQL(singleSQLs)
- if len(singleSQLs) == 0 {
- return nil, nil
- }
var results []*v1pb.QueryResult
for _, singleSQL := range singleSQLs {
diff --git a/backend/plugin/db/redshift/redshift.go b/backend/plugin/db/redshift/redshift.go
index 3ccf1a59de..46b11e4a17 100644
--- a/backend/plugin/db/redshift/redshift.go
+++ b/backend/plugin/db/redshift/redshift.go
@@ -408,10 +408,6 @@ func (driver *Driver) QueryConn(ctx context.Context, conn *sql.Conn, statement s
if len(singleSQLs) == 0 {
return nil, nil
}
- singleSQLs = base.FilterEmptySQL(singleSQLs)
- if len(singleSQLs) == 0 {
- return nil, nil
- }
var results []*v1pb.QueryResult
for _, singleSQL := range singleSQLs {