This commit is contained in:
Lunny Xiao 2023-12-15 00:21:39 +08:00
parent a7a562c483
commit 2248d3604e
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (statement *Statement) writeIndexHintsMySQL(w *builder.BytesWriter) error {
if hint.op != "USE" && hint.op != "FORCE" && hint.op != "IGNORE" { if hint.op != "USE" && hint.op != "FORCE" && hint.op != "IGNORE" {
return ErrInvalidIndexHintOperator{Op: hint.op} return ErrInvalidIndexHintOperator{Op: hint.op}
} }
if err := statement.writeStrings(hint.op, " INDEX(", hint.indexName, ")")(w); err != nil { if err := statement.writeStrings(" ", hint.op, " INDEX(", hint.indexName, ")")(w); err != nil {
return err return err
} }
} }