Skip to content

Commit

Permalink
fix misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
hasa1K committed Nov 24, 2023
1 parent 71c9c10 commit 8901926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sqle/driver/mysql/audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7321,7 +7321,7 @@ func TestMustUseLeftMostPrefix(t *testing.T) {
}
}

func Test_CheckSQLExplainLowsetLevel(t *testing.T) {
func Test_CheckSQLExplainLowestLevel(t *testing.T) {
e, handler, err := executor.NewMockExecutor()
assert.NoError(t, err)

Expand Down
4 changes: 2 additions & 2 deletions sqle/driver/mysql/rule/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ var RuleHandlers = []RuleHandler{
},
AllowOffline: false,
Message: "建议修改SQL,确保执行计划中type字段可以满足规定中的任一等级:%v",
Func: checkSQLExplainLowsetLevel,
Func: checkSQLExplainLowestLevel,
},
{
Rule: driverV2.Rule{
Expand Down Expand Up @@ -7622,7 +7622,7 @@ func checkJoinFieldCharacterSetAndCollation(input *RuleHandlerInput) error {
return nil
}

func checkSQLExplainLowsetLevel(input *RuleHandlerInput) error {
func checkSQLExplainLowestLevel(input *RuleHandlerInput) error {
switch input.Node.(type) {
case *ast.SelectStmt, *ast.DeleteStmt, *ast.UpdateStmt:
default:
Expand Down

0 comments on commit 8901926

Please sign in to comment.