Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: pass changeType (#11074)
p0nye779b8f310ad
diff --git a/backend/runner/plancheck/statement_advise_executor.go b/backend/runner/plancheck/statement_advise_executor.goindex 73087a3cdf..af901142ee 100644--- a/backend/runner/plancheck/statement_advise_executor.go+++ b/backend/runner/plancheck/statement_advise_executor.go@@ -376,12 +376,13 @@ func (e *StatementAdviseExecutor) runForDatabaseGroupTarget(ctx context.Context,// To avoid leaking the rendered statement, the error message should use the original statement and not the rendered statement.renderedStatement := utils.RenderStatement(statement, materials)adviceList, err := advisor.SQLReviewCheck(renderedStatement, policy.RuleList, advisor.SQLReviewCheckContext{- Charset: dbSchema.GetMetadata().CharacterSet,- Collation: dbSchema.GetMetadata().Collation,- DbType: instance.Engine,- Catalog: catalog,- Driver: connection,- Context: ctx,+ Charset: dbSchema.GetMetadata().CharacterSet,+ Collation: dbSchema.GetMetadata().Collation,+ ChangeType: changeType,+ DbType: instance.Engine,+ Catalog: catalog,+ Driver: connection,+ Context: ctx,})if err != nil {return nil, err