Lines Matching refs:cols

96 	if (S->cols) {  in oci_stmt_dtor()
98 if (S->cols[i].data) { in oci_stmt_dtor()
99 switch (S->cols[i].dtype) { in oci_stmt_dtor()
102 OCIDescriptorFree(S->cols[i].data, OCI_DTYPE_LOB); in oci_stmt_dtor()
105 efree(S->cols[i].data); in oci_stmt_dtor()
109 efree(S->cols); in oci_stmt_dtor()
110 S->cols = NULL; in oci_stmt_dtor()
160 if (S->cols) { in oci_stmt_execute()
163 if (S->cols[i].data) { in oci_stmt_execute()
164 switch (S->cols[i].dtype) { in oci_stmt_execute()
170 efree(S->cols[i].data); in oci_stmt_execute()
174 efree(S->cols); in oci_stmt_execute()
177 S->cols = ecalloc(colcount, sizeof(pdo_oci_column)); in oci_stmt_execute()
542 S->cols[colno].dtype = dtype; in oci_stmt_describe()
553 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */ in oci_stmt_describe()
554 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
561 … STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL)); in oci_stmt_describe()
562 S->cols[colno].datalen = sizeof(OCILobLocator*); in oci_stmt_describe()
577 S->cols[colno].datalen = 512; in oci_stmt_describe()
580 S->cols[colno].datalen = 1024; in oci_stmt_describe()
583 S->cols[colno].datalen = col->maxlen; in oci_stmt_describe()
586 S->cols[colno].datalen *= 3; in oci_stmt_describe()
588 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
595 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe()
596 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe()
597 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe()
600 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe()
724 pdo_oci_column *C = &S->cols[colno]; in oci_stmt_get_col()