handleCloseCursorExtended handles CLOSE cursor in the Extended Query protocol.
(p *portal)
| 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 | } |
no test coverage detected