Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
demoManito committed Oct 20, 2023
1 parent 294255c commit 685ece8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion clause/set.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package clause

import "sort"
import (
"sort"
)

type Set []Assignment

Expand Down Expand Up @@ -28,7 +30,9 @@ func (set Set) Build(builder Builder) {
}
} else {
builder.WriteQuoted(Column{Name: PrimaryKey})
builder.WriteByte(' ')
builder.WriteByte('=')
builder.WriteByte(' ')
builder.WriteQuoted(Column{Name: PrimaryKey})
}
}
Expand Down
1 change: 0 additions & 1 deletion clause/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func TestSet(t *testing.T) {
{
[]clause.Interface{
clause.Update{},
clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}),
clause.Set([]clause.Assignment{
{clause.Column{Name: "name"}, "jinzhu"},
{clause.Column{Name: "age"}, 18},
Expand Down

0 comments on commit 685ece8

Please sign in to comment.