Skip to content

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

chore: change default affected_rows value to MaxInt32 (#8164)

p0nyed31ef3ec19b
diff --git a/backend/runner/approval/runner.go b/backend/runner/approval/runner.go
index 1e1f4fd433..6c08e414bf 100644
--- a/backend/runner/approval/runner.go
+++ b/backend/runner/approval/runner.go
@@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"log/slog"
+ "math"
"reflect"
"sort"
"strconv"
@@ -479,7 +480,7 @@ func getDatabaseGeneralIssueRisk(ctx context.Context, s *store.Store, licenseSer
// convert to string type otherwise cel-go will complain that db.Type is not string type.
"db_engine": string(instance.Engine),
"sql_type": "UNKNOWN",
- "affected_rows": 0,
+ "affected_rows": math.MaxInt32,
}
res, _, err := prg.Eval(args)