Lines Matching refs:cols

101 	if (S->cols) {  in oci_stmt_dtor()
103 if (S->cols[i].data) { in oci_stmt_dtor()
104 switch (S->cols[i].dtype) { in oci_stmt_dtor()
108 (OCILobLocator *) S->cols[i].data); in oci_stmt_dtor()
109 OCIDescriptorFree(S->cols[i].data, OCI_DTYPE_LOB); in oci_stmt_dtor()
112 efree(S->cols[i].data); in oci_stmt_dtor()
116 efree(S->cols); in oci_stmt_dtor()
117 S->cols = NULL; in oci_stmt_dtor()
167 if (S->cols) { in oci_stmt_execute()
170 if (S->cols[i].data) { in oci_stmt_execute()
171 switch (S->cols[i].dtype) { in oci_stmt_execute()
177 efree(S->cols[i].data); in oci_stmt_execute()
181 efree(S->cols); in oci_stmt_execute()
184 S->cols = ecalloc(colcount, sizeof(pdo_oci_column)); in oci_stmt_execute()
546 S->cols[colno].dtype = dtype; in oci_stmt_describe()
557 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */ in oci_stmt_describe()
558 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
563 … STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL)); in oci_stmt_describe()
564 S->cols[colno].datalen = sizeof(OCILobLocator*); in oci_stmt_describe()
579 S->cols[colno].datalen = 512; in oci_stmt_describe()
582 S->cols[colno].datalen = 1024; in oci_stmt_describe()
585 S->cols[colno].datalen = (ub4) col->maxlen * 2; /* raw characters to hex digits */ in oci_stmt_describe()
587 S->cols[colno].datalen = (ub4) (col->maxlen * S->H->max_char_width); in oci_stmt_describe()
590 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
594 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe()
595 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe()
596 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe()
599 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe()
758 pdo_oci_column *C = &S->cols[colno]; in oci_stmt_get_col()