MCPcopy Create free account
hub / github.com/PostHog/duckgres / handleCloseCursorExtended

Method handleCloseCursorExtended

server/conn_cursor.go:525–538  ·  view source on GitHub ↗

handleCloseCursorExtended handles CLOSE cursor in the Extended Query protocol.

(p *portal)

Source from the content-addressed store, hash-verified

523 c.closeAllCursors()
524 } else {
525 if _, ok := c.cursors[p.stmt.cursorName]; !ok {
526 c.sendError("ERROR", "34000", fmt.Sprintf("cursor %q does not exist", p.stmt.cursorName))
527 return
528 }
529 c.closeCursor(p.stmt.cursorName)
530 }
531
532 c.logger().Debug("Cursor closed (extended).", "cursor", p.stmt.cursorName)
533 _ = c.writeCommandComplete("CLOSE CURSOR")
534}

Callers 1

handleExecuteMethod · 0.95

Calls 5

closeAllCursorsMethod · 0.95
sendErrorMethod · 0.95
closeCursorMethod · 0.95
loggerMethod · 0.95
writeCommandCompleteMethod · 0.95

Tested by

no test coverage detected