jeroenrinzema/psql-wire

close the statement or portal

github-actions opened this issue · 0 comments

Line: 189

psql-wire//command.go

Lines 186 to 196 in b289207

// https://github.com/postgres/postgres/blob/6e1dd2773eb60a6ab87b27b8d9391b756e904ac3/src/backend/tcop/postgres.c#L4295
return readyForQuery(writer, types.ServerIdle)
case types.ClientClose:
// TODO: close the statement or portal
writer.Start(types.ServerCloseComplete) //nolint:errcheck
writer.End() //nolint:errcheck
return readyForQuery(writer, types.ServerIdle)
case types.ClientTerminate:
err = srv.handleConnTerminate(ctx)
if err != nil {
return err