small optimization

This commit is contained in:
Lunny Xiao 2023-07-22 22:40:12 +08:00
parent bc715dd7ae
commit 7c5b33b689
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ func (statement *Statement) writeJoins(w *builder.BytesWriter) error {
func (statement *Statement) writeJoin(buf *builder.BytesWriter, join join) error {
// write join operator
if _, err := fmt.Fprintf(buf, " %v JOIN", join.op); err != nil {
if _, err := fmt.Fprint(buf, " ", join.op, " JOIN"); err != nil {
return err
}