Skip to content

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

fix: typo (#12145)

p0ny41f9ca6ce90f
diff --git a/backend/plugin/advisor/mssql/mssql_rules_test.go b/backend/plugin/advisor/mssql/mssql_rules_test.go
index 0c1580fd59..c7ae90f23a 100644
--- a/backend/plugin/advisor/mssql/mssql_rules_test.go
+++ b/backend/plugin/advisor/mssql/mssql_rules_test.go
@@ -28,7 +28,7 @@ func TestMSSQLRules(t *testing.T) {
advisor.SchemaRuleFunctionDisallowCreate,
advisor.SchemaRuleProcedureDisallowCreate,
advisor.SchemaRuleStatementDisallowCrossDBQueries,
- advisor.SchemaRuleStatementWhereDisallowFunctionsAndCaculations,
+ advisor.SchemaRuleStatementWhereDisallowFunctionsAndCalculations,
}
for _, rule := range mssqlRules {
diff --git a/backend/plugin/advisor/mysql/mysql_rules_test.go b/backend/plugin/advisor/mysql/mysql_rules_test.go
index 296c769865..6301d328b3 100644
--- a/backend/plugin/advisor/mysql/mysql_rules_test.go
+++ b/backend/plugin/advisor/mysql/mysql_rules_test.go
@@ -60,7 +60,7 @@ func TestMySQLRules(t *testing.T) {
// advisor.SchemaRuleStatementMaximumJoinTableCount enforces maximum of tables in the joins.
advisor.SchemaRuleStatementMaximumJoinTableCount,
// advisor.SchemaRuleStatementWhereDisallowUsingFunction disallow using function in where clause.
- advisor.SchemaRuleStatementWhereDisallowFunctionsAndCaculations,
+ advisor.SchemaRuleStatementWhereDisallowFunctionsAndCalculations,
// advisor.SchemaRuleStatementWhereMaximumLogicalOperatorCount enforces maximum number of logical operators in the where clause.
advisor.SchemaRuleStatementWhereMaximumLogicalOperatorCount,
diff --git a/backend/plugin/advisor/sql_review.go b/backend/plugin/advisor/sql_review.go
index a58080b0c9..7ec129359d 100644
--- a/backend/plugin/advisor/sql_review.go
+++ b/backend/plugin/advisor/sql_review.go
@@ -114,8 +114,8 @@ const (
SchemaRuleStatementDisallowUsingTemporary = "statement.disallow-using-temporary"
// SchemaRuleStatementWhereNoEqualNull check the WHERE clause no equal null.
SchemaRuleStatementWhereNoEqualNull = "statement.where.no-equal-null"
- // SchemaRuleStatementWhereDisallowFunctionsAndCaculations disallow using function in WHERE clause.
- SchemaRuleStatementWhereDisallowFunctionsAndCaculations = "statement.where.disallow-functions-and-calculations"
+ // SchemaRuleStatementWhereDisallowFunctionsAndCalculations disallow using function in WHERE clause.
+ SchemaRuleStatementWhereDisallowFunctionsAndCalculations = "statement.where.disallow-functions-and-calculations"
// SchemaRuleStatementQueryMinumumPlanLevel enforce the minimum plan level.
SchemaRuleStatementQueryMinumumPlanLevel = "statement.query.minimum-plan-level"
// SchemaRuleStatementWhereMaximumLogicalOperatorCount enforce the maximum logical operator count in WHERE clause.
@@ -1637,7 +1637,7 @@ func getAdvisorTypeByRule(ruleType SQLReviewRuleType, engine storepb.Engine) (Ty
if engine == storepb.Engine_MYSQL {
return MySQLStatementWhereNoEqualNull, nil
}
- case SchemaRuleStatementWhereDisallowFunctionsAndCaculations:
+ case SchemaRuleStatementWhereDisallowFunctionsAndCalculations:
if engine == storepb.Engine_MYSQL {
return MySQLStatementWhereDisallowUsingFunction, nil
}
diff --git a/backend/plugin/advisor/utils_for_tests.go b/backend/plugin/advisor/utils_for_tests.go
index c21d496082..61b0dbba01 100644
--- a/backend/plugin/advisor/utils_for_tests.go
+++ b/backend/plugin/advisor/utils_for_tests.go
@@ -392,7 +392,7 @@ func SetDefaultSQLReviewRulePayload(ruleTp SQLReviewRuleType, dbType storepb.Eng
SchemaRuleFunctionDisallowCreate,
SchemaRuleStatementCreateSpecifySchema,
SchemaRuleStatementCheckSetRoleVariable,
- SchemaRuleStatementWhereDisallowFunctionsAndCaculations,
+ SchemaRuleStatementWhereDisallowFunctionsAndCalculations,
SchemaRuleStatementDisallowMixDDLDML,
SchemaRuleStatementPriorBackupCheck,
SchemaRuleStatementJoinStrictColumnAttrs,