Skip to content

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

fix: typo (#1979)

rebelice6df47d9ca1e6
diff --git a/plugin/advisor/mysql/advisor_naming_column.go b/plugin/advisor/mysql/advisor_naming_column.go
index a2537d90c5..23fc821eec 100644
--- a/plugin/advisor/mysql/advisor_naming_column.go
+++ b/plugin/advisor/mysql/advisor_naming_column.go
@@ -114,7 +114,7 @@ func (v *namingColumnConventionChecker) Enter(in ast.Node) (ast.Node, bool) {
Status: v.level,
Code: advisor.NamingColumnConventionMismatch,
Title: v.title,
- Content: fmt.Sprintf("`%s`.`%s` mismatches column naming convention, its length should within %d characters", tableName, column, v.maxLength),
+ Content: fmt.Sprintf("`%s`.`%s` mismatches column naming convention, its length should be within %d characters", tableName, column, v.maxLength),
})
}
}
diff --git a/plugin/advisor/mysql/advisor_naming_column_test.go b/plugin/advisor/mysql/advisor_naming_column_test.go
index 60bc914747..12ad9e9f58 100644
--- a/plugin/advisor/mysql/advisor_naming_column_test.go
+++ b/plugin/advisor/mysql/advisor_naming_column_test.go
@@ -31,7 +31,7 @@ func TestNamingColumnConvention(t *testing.T) {
Status: advisor.Warn,
Code: advisor.NamingColumnConventionMismatch,
Title: "naming.column",
- Content: fmt.Sprintf("`book`.`%s` mismatches column naming convention, its length should within 64 characters", invalidColumnName),
+ Content: fmt.Sprintf("`book`.`%s` mismatches column naming convention, its length should be within 64 characters", invalidColumnName),
},
},
},
diff --git a/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go b/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go
index 0675d89be2..ac901ff577 100644
--- a/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go
+++ b/plugin/advisor/mysql/advisor_naming_foreign_key_convention.go
@@ -97,7 +97,7 @@ func (checker *namingFKConventionChecker) Enter(in ast.Node) (ast.Node, bool) {
Status: checker.level,
Code: advisor.NamingFKConventionMismatch,
Title: checker.title,
- Content: fmt.Sprintf("Foreign key `%s` in table `%s` mismatches the naming convention, its length should within %d characters", indexData.indexName, indexData.tableName, checker.maxLength),
+ Content: fmt.Sprintf("Foreign key `%s` in table `%s` mismatches the naming convention, its length should be within %d characters", indexData.indexName, indexData.tableName, checker.maxLength),
})
}
}
diff --git a/plugin/advisor/mysql/advisor_naming_foreign_key_convention_test.go b/plugin/advisor/mysql/advisor_naming_foreign_key_convention_test.go
index edf8a8498e..80f1f31ac5 100644
--- a/plugin/advisor/mysql/advisor_naming_foreign_key_convention_test.go
+++ b/plugin/advisor/mysql/advisor_naming_foreign_key_convention_test.go
@@ -48,7 +48,7 @@ func TestNamingFKConvention(t *testing.T) {
Status: advisor.Error,
Code: advisor.NamingFKConventionMismatch,
Title: "naming.index.fk",
- Content: fmt.Sprintf("Foreign key `%s` in table `tech_book` mismatches the naming convention, its length should within 64 characters", invalidFKName),
+ Content: fmt.Sprintf("Foreign key `%s` in table `tech_book` mismatches the naming convention, its length should be within 64 characters", invalidFKName),
},
},
},
diff --git a/plugin/advisor/mysql/advisor_naming_index_convention.go b/plugin/advisor/mysql/advisor_naming_index_convention.go
index 6eb56ded65..8a06ac627d 100644
--- a/plugin/advisor/mysql/advisor_naming_index_convention.go
+++ b/plugin/advisor/mysql/advisor_naming_index_convention.go
@@ -103,7 +103,7 @@ func (checker *namingIndexConventionChecker) Enter(in ast.Node) (ast.Node, bool)
Status: checker.level,
Code: advisor.NamingIndexConventionMismatch,
Title: checker.title,
- Content: fmt.Sprintf("Index `%s` in table `%s` mismatches the naming convention, its length should within %d characters", indexData.indexName, indexData.tableName, checker.maxLength),
+ Content: fmt.Sprintf("Index `%s` in table `%s` mismatches the naming convention, its length should be within %d characters", indexData.indexName, indexData.tableName, checker.maxLength),
})
}
}
diff --git a/plugin/advisor/mysql/advisor_naming_index_convention_test.go b/plugin/advisor/mysql/advisor_naming_index_convention_test.go
index 5f175f49f6..31c8c65421 100644
--- a/plugin/advisor/mysql/advisor_naming_index_convention_test.go
+++ b/plugin/advisor/mysql/advisor_naming_index_convention_test.go
@@ -49,7 +49,7 @@ func TestNamingIndexConvention(t *testing.T) {
Status: advisor.Error,
Code: advisor.NamingIndexConventionMismatch,
Title: "naming.index.idx",
- Content: fmt.Sprintf("Index `%s` in table `tech_book` mismatches the naming convention, its length should within 64 characters", invalidIndexName),
+ Content: fmt.Sprintf("Index `%s` in table `tech_book` mismatches the naming convention, its length should be within 64 characters", invalidIndexName),
},
},
},
diff --git a/plugin/advisor/mysql/advisor_naming_table.go b/plugin/advisor/mysql/advisor_naming_table.go
index 33880c196e..250bd74a95 100644
--- a/plugin/advisor/mysql/advisor_naming_table.go
+++ b/plugin/advisor/mysql/advisor_naming_table.go
@@ -102,7 +102,7 @@ func (v *namingTableConventionChecker) Enter(in ast.Node) (ast.Node, bool) {
Status: v.level,
Code: advisor.NamingTableConventionMismatch,
Title: v.title,
- Content: fmt.Sprintf("`%s` mismatches table naming convention, its length should within %d characters", tableName, v.maxLength),
+ Content: fmt.Sprintf("`%s` mismatches table naming convention, its length should be within %d characters", tableName, v.maxLength),
})
}
}
diff --git a/plugin/advisor/mysql/advisor_naming_table_test.go b/plugin/advisor/mysql/advisor_naming_table_test.go
index f676bd5fae..5f3ea521cf 100644
--- a/plugin/advisor/mysql/advisor_naming_table_test.go
+++ b/plugin/advisor/mysql/advisor_naming_table_test.go
@@ -42,7 +42,7 @@ func TestMySQLNamingTableConvention(t *testing.T) {
Status: advisor.Error,
Code: advisor.NamingTableConventionMismatch,
Title: "naming.table",
- Content: fmt.Sprintf("`%s` mismatches table naming convention, its length should within 64 characters", invalidTableName),
+ Content: fmt.Sprintf("`%s` mismatches table naming convention, its length should be within 64 characters", invalidTableName),
},
},
},
diff --git a/plugin/advisor/mysql/advisor_naming_unique_key_convention.go b/plugin/advisor/mysql/advisor_naming_unique_key_convention.go
index b9bb1d0d08..627b8e5dd2 100644
--- a/plugin/advisor/mysql/advisor_naming_unique_key_convention.go
+++ b/plugin/advisor/mysql/advisor_naming_unique_key_convention.go
@@ -101,7 +101,7 @@ func (checker *namingUKConventionChecker) Enter(in ast.Node) (ast.Node, bool) {
Status: checker.level,
Code: advisor.NamingUKConventionMismatch,
Title: checker.title,
- Content: fmt.Sprintf("Unique key `%s` in table `%s` mismatches the naming convention, its length should within %d characters", indexData.indexName, indexData.tableName, checker.maxLength),
+ Content: fmt.Sprintf("Unique key `%s` in table `%s` mismatches the naming convention, its length should be within %d characters", indexData.indexName, indexData.tableName, checker.maxLength),
})
}
}
diff --git a/plugin/advisor/mysql/advisor_naming_unique_key_convention_test.go b/plugin/advisor/mysql/advisor_naming_unique_key_convention_test.go
index e4c1bff3fe..1edf41ab5c 100644
--- a/plugin/advisor/mysql/advisor_naming_unique_key_convention_test.go
+++ b/plugin/advisor/mysql/advisor_naming_unique_key_convention_test.go
@@ -49,7 +49,7 @@ func TestNamingUKConvention(t *testing.T) {
Status: advisor.Error,
Code: advisor.NamingUKConventionMismatch,
Title: "naming.index.uk",
- Content: fmt.Sprintf("Unique key `%s` in table `tech_book` mismatches the naming convention, its length should within 64 characters", invalidUKName),
+ Content: fmt.Sprintf("Unique key `%s` in table `tech_book` mismatches the naming convention, its length should be within 64 characters", invalidUKName),
},
},
},
diff --git a/plugin/advisor/pg/advisor_naming_foreign_key_convention.go b/plugin/advisor/pg/advisor_naming_foreign_key_convention.go
index cd972c7875..dae700bfe4 100644
--- a/plugin/advisor/pg/advisor_naming_foreign_key_convention.go
+++ b/plugin/advisor/pg/advisor_naming_foreign_key_convention.go
@@ -105,7 +105,7 @@ func (checker *namingFKConventionChecker) Visit(in ast.Node) ast.Visitor {
Status: checker.level,
Code: advisor.NamingFKConventionMismatch,
Title: checker.title,
- Content: fmt.Sprintf(`Foreign key "%s" in table "%s" mismatches the naming convention, its length should within %d characters`, indexData.indexName, indexData.tableName, checker.maxLength),
+ Content: fmt.Sprintf(`Foreign key "%s" in table "%s" mismatches the naming convention, its length should be within %d characters`, indexData.indexName, indexData.tableName, checker.maxLength),
})
}
}
diff --git a/plugin/advisor/pg/advisor_naming_foreign_key_convention_test.go b/plugin/advisor/pg/advisor_naming_foreign_key_convention_test.go
index 7aac517902..5b952ece26 100644
--- a/plugin/advisor/pg/advisor_naming_foreign_key_convention_test.go
+++ b/plugin/advisor/pg/advisor_naming_foreign_key_convention_test.go
@@ -49,7 +49,7 @@ func TestNamingFKConvention(t *testing.T) {
Status: advisor.Error,
Code: advisor.NamingFKConventionMismatch,
Title: "naming.index.fk",
- Content: fmt.Sprintf("Foreign key \"%s\" in table \"tech_book\" mismatches the naming convention, its length should within %d characters", invalidFKName, maxLength),
+ Content: fmt.Sprintf("Foreign key \"%s\" in table \"tech_book\" mismatches the naming convention, its length should be within %d characters", invalidFKName, maxLength),
},
},
},