Please enable JavaScript to view this site.

ASQL Reference

Navigation: Opcodes and Operations

SQLOP_PST_EXECUTE

Scroll Prev Top Next More

xcall SQL, SQLOP_PST_EXECUTE, cmdhdr

The SQLOP_PST_EXECUTE function executes a previously prepared statement (see SQLOP_PST_PREPARE), using a previously defined binding (see SQLOP_STMT_BIND).

Parameters

cmdhdr (ST_SQL_CMDHDR), [in/out]

The fields of interest to this opcode in the cmdhdr structure (defined in SQL.DEF) are listed below.

Field

Dir

Notes

handle

in

handle to connection (returned from SQLOP_INIT_CONN)

dbmsconid

in

DBMS Connector ID

opflags

n/a

 

cmdarg1

n/a

 

cmdarg2

n/a

 

rc

out

return code (0 = ok, see SQLERR_xxx)

rcext

out

extended error code

info1

n/a

 

info2

n/a

 

sqlstate

out

ANSI standard SQL state code

reshdl

n/a

 

psthdl

in

Must match the value returned from the corresponding SQLOP_PST_PREPARE and SQLOP_STMT_EXECUTE statements