Skip to content

Commit

Permalink
rename files
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 23, 2023
1 parent d08d00a commit e9f86ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions go/sql/hints.go → go/sql/optimizer_hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type OptimizerHints struct {

// String returns a optimizer hint string containing all
// defined hints.
func (hints OptimizerHints) String() (hintSQL string) {
func (hints OptimizerHints) String() (hintsSQL string) {
ts := reflect.TypeOf(hints)
if ts.NumField() == 0 {
return hintSQL
return hintsSQL
}

vs := reflect.ValueOf(hints)
Expand All @@ -37,7 +37,7 @@ func (hints OptimizerHints) String() (hintSQL string) {
}

if len(hintSlice) > 0 {
hintSQL = fmt.Sprintf(`/*+ %s */`, strings.Join(hintSlice, " "))
hintsSQL = fmt.Sprintf(`/*+ %s */`, strings.Join(hintSlice, " "))
}
return hintSQL
return hintsSQL
}
2 changes: 1 addition & 1 deletion go/sql/hints_test.go → go/sql/optimizer_hints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func TestOptimizerHintsString(t *testing.T) {
hints := OptimizerHints{}
var hints OptimizerHints
{
test.S(t).ExpectEquals(hints.String(), ``)
}
Expand Down

0 comments on commit e9f86ac

Please sign in to comment.