MCPcopy Create free account
hub / github.com/apecloud/myduckserver / returnsRow

Function returnsRow

pgserver/connection_handler.go:1368–1375  ·  view source on GitHub ↗

returnsRow returns whether the query returns set of rows such as SELECT and FETCH statements.

(tag string)

Source from the content-addressed store, hash-verified

1366 if err := h.sendNestedBeginWarning(query.AST); err != nil {
1367 return err
1368 }
1369 logrus.Tracef("executing portal %s with statement %s and %d bound values", message.Portal, statementLogText(query), len(portalData.Vars))
1370
1371 if portalData.IsEmptyQuery {
1372 err = h.send(&pgproto3.NoData{})
1373 if err != nil {
1374 return fmt.Errorf("error sending NoData message: %w", err)
1375 }
1376 return h.send(&pgproto3.EmptyQueryResponse{})
1377 }
1378

Callers 2

spoolRowsCallbackMethod · 0.85
sendDescribeResponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected