Lines Matching refs:colno

512 static int oci_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */  in oci_stmt_describe()  argument
519 struct pdo_column_data *col = &stmt->columns[colno]; in oci_stmt_describe()
523 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)&param, colno+1)); in oci_stmt_describe()
545 S->cols[colno].dtype = dtype; in oci_stmt_describe()
556 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */ in oci_stmt_describe()
557 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
564 … STMT_CALL(OCIDescriptorAlloc, (S->H->env, (dvoid**)&S->cols[colno].data, OCI_DTYPE_LOB, 0, NULL)); in oci_stmt_describe()
565 S->cols[colno].datalen = sizeof(OCILobLocator*); in oci_stmt_describe()
580 S->cols[colno].datalen = 512; in oci_stmt_describe()
583 S->cols[colno].datalen = 1024; in oci_stmt_describe()
586 S->cols[colno].datalen = (ub4) col->maxlen * 2; /* raw characters to hex digits */ in oci_stmt_describe()
588 S->cols[colno].datalen = (ub4) (col->maxlen * S->H->max_char_width); in oci_stmt_describe()
591 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1); in oci_stmt_describe()
598 STMT_CALL(OCIDefineByPos, (S->stmt, &S->cols[colno].def, S->err, colno+1, in oci_stmt_describe()
599 S->cols[colno].data, S->cols[colno].datalen, dtype, &S->cols[colno].indicator, in oci_stmt_describe()
600 &S->cols[colno].fetched_len, &S->cols[colno].retcode, dyn ? OCI_DYNAMIC_FETCH : OCI_DEFAULT)); in oci_stmt_describe()
603 STMT_CALL(OCIDefineDynamic, (S->cols[colno].def, S->err, &S->cols[colno], in oci_stmt_describe()
745 static int oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, size_t *len, int *caller_frees… in oci_stmt_get_col() argument
748 pdo_oci_column *C = &S->cols[colno]; in oci_stmt_get_col()
773 …ref(NULL, E_WARNING, "Column %d data was too large for buffer and was truncated to fit it", colno); in oci_stmt_get_col()
782 static int oci_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *return_value) /* {{{ */ in oci_stmt_col_meta() argument
793 if (colno >= stmt->column_count) { in oci_stmt_col_meta()
802 STMT_CALL(OCIParamGet, (S->stmt, OCI_HTYPE_STMT, S->err, (dvoid*)&param, colno+1)); in oci_stmt_col_meta()