Skip to content

Commit

Permalink
chore(pkg/pgsql): single command complete message
Browse files Browse the repository at this point in the history
Signed-off-by: Jeronimo Irazabal <[email protected]>
  • Loading branch information
jeroiraz committed Nov 3, 2023
1 parent 59212aa commit bab0935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/pgsql/server/query_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ func (s *session) fetchAndWriteResults(statements string, parameters []*schema.N
return err
}
}
}

_, err = s.writeMessage(bm.CommandComplete([]byte("ok")))
if err != nil {
return err
}
_, err = s.writeMessage(bm.CommandComplete([]byte("ok")))
if err != nil {
return err
}

return nil
Expand Down

0 comments on commit bab0935

Please sign in to comment.