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

Method ComExecuteBound

pgserver/duck_handler.go:123–130  ·  view source on GitHub ↗

ComExecuteBound implements the Handler interface.

(ctx context.Context, conn *mysql.Conn, portal PortalData, callback func(*Result) error)

Source from the content-addressed store, hash-verified

121
122// ComExecuteBound implements the Handler interface.
123func (h *DuckHandler) ComExecuteBound(ctx context.Context, conn *mysql.Conn, portal PortalData, callback func(*Result) error) error {
124 if err := h.rejectReadOnly(portal.Statement); err != nil {
125 return err
126 }
127 err := h.doQuery(ctx, conn, portal.Statement.String, portal.Statement.QueryForAudit(), portal.Statement.AST, portal.Stmt, portal.Vars, portal.ResultFormatCodes, ExtendedQueryMode, h.executeBoundPlan, callback)
128 if err != nil {
129 err = sql.CastSQLError(err)
130 }
131
132 return err
133}

Callers

nothing calls this directly

Calls 1

doQueryMethod · 0.95

Tested by

no test coverage detected