Exemplo n.º 1
0
void OWStatement::BindArray( void* pData, long nSize )
{
    OCIBind* hBind = NULL;

    nNextBnd++;

    CheckError( OCIBindByPos(
        hStmt,
        &hBind,
        hError,
        (ub4) nNextBnd,
        (dvoid*) pData,
        (sb4) nSize * sizeof(double),
        (ub2) SQLT_BIN,
        (void*) NULL,
        (ub2*) NULL,
        (ub2*) NULL,
        (ub4) NULL,
        (ub4) NULL,
        (ub4) OCI_DEFAULT ), hError );

    CheckError( OCIBindArrayOfStruct(
        hBind,
        hError,
        (ub4) nSize * sizeof(double),
        (ub4) 0,
        (ub4) 0,
        (ub4) 0), hError );
}
Exemplo n.º 2
0
// TODO add ind skip here
void BindParLob::bind_hook()
{
	sword res = OCICALL(OCIBindArrayOfStruct(bindp, _stmt._errh, sizeof(OCILobLocator*), 0, 0, 0 ));
	oci_check_error(__TROTL_HERE__, _stmt._errh, res);
}