ComExecuteBound implements the Handler interface.
(ctx context.Context, conn *mysql.Conn, portal PortalData, callback func(*Result) error)
| 121 | |
| 122 | // ComExecuteBound implements the Handler interface. |
| 123 | func (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 | } |