Skip to content

Commit

Permalink
fix: use correct operation for UpdateQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Nov 20, 2021
1 parent 21761d8 commit 687a004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query_update.go
Expand Up @@ -166,7 +166,7 @@ func (q *UpdateQuery) hasReturning() bool {
//------------------------------------------------------------------------------

func (q *UpdateQuery) Operation() string {
return "SELECT"
return "UPDATE"
}

func (q *UpdateQuery) AppendQuery(fmter schema.Formatter, b []byte) (_ []byte, err error) {
Expand Down

0 comments on commit 687a004

Please sign in to comment.