Lines Matching refs:column
692 php_oci_out_column *column = (php_oci_out_column *) Z_PTR_P(data); in php_oci_column_hash_dtor() local
694 if (column->stmtid) { in php_oci_column_hash_dtor()
695 zend_list_close(column->stmtid); in php_oci_column_hash_dtor()
698 if (column->descid) { in php_oci_column_hash_dtor()
699 if (GC_REFCOUNT(column->descid) == 1) in php_oci_column_hash_dtor()
700 zend_list_close(column->descid); in php_oci_column_hash_dtor()
702 GC_DELREF(column->descid); in php_oci_column_hash_dtor()
706 if (column->data) { in php_oci_column_hash_dtor()
707 efree(column->data); in php_oci_column_hash_dtor()
710 if (column->name) { in php_oci_column_hash_dtor()
711 efree(column->name); in php_oci_column_hash_dtor()
714 efree(column); in php_oci_column_hash_dtor()
1685 int php_oci_column_to_zval(php_oci_out_column *column, zval *value, int mode) in php_oci_column_to_zval() argument
1693 if (column->indicator == -1) { /* column is NULL */ in php_oci_column_to_zval()
1698 if (column->is_cursor) { /* REFCURSOR -> simply return the statement id */ in php_oci_column_to_zval()
1699 ZVAL_RES(value, column->stmtid); in php_oci_column_to_zval()
1700 GC_ADDREF(column->stmtid); in php_oci_column_to_zval()
1701 } else if (column->is_descr) { in php_oci_column_to_zval()
1703 if (column->data_type != SQLT_RDD) { in php_oci_column_to_zval()
1706 descriptor = (php_oci_descriptor *) column->descid->ptr; in php_oci_column_to_zval()
1709 …php_error_docref(NULL, E_WARNING, "Unable to find LOB descriptor #" ZEND_LONG_FMT, column->descid-… in php_oci_column_to_zval()
1718 if (column->data_type != SQLT_RDD && (mode & PHP_OCI_RETURN_LOBS)) { in php_oci_column_to_zval()
1721 if (column->chunk_size) in php_oci_column_to_zval()
1722 descriptor->chunk_size = column->chunk_size; in php_oci_column_to_zval()
1725 column->chunk_size = descriptor->chunk_size; in php_oci_column_to_zval()
1743 add_property_resource(value, "descriptor", column->descid); in php_oci_column_to_zval()
1744 GC_ADDREF(column->descid); in php_oci_column_to_zval()
1747 switch (column->retcode) { in php_oci_column_to_zval()
1750 if (column->piecewise) { in php_oci_column_to_zval()
1751 column_size = column->retlen4; in php_oci_column_to_zval()
1753 column_size = column->retlen; in php_oci_column_to_zval()
1762 ZVAL_STRINGL(value, column->data, column_size); in php_oci_column_to_zval()
1783 php_oci_out_column *column; in php_oci_fetch_row() local
1908 column = php_oci_statement_get_column(statement, i + 1, NULL, 0); in php_oci_fetch_row()
1910 if (column == NULL) { in php_oci_fetch_row()
1913 if ((column->indicator == -1) && ((fetch_mode & PHP_OCI_RETURN_NULLS) == 0)) { in php_oci_fetch_row()
1917 if (!(column->indicator == -1)) { in php_oci_fetch_row()
1920 php_oci_column_to_zval(column, &element, (int) fetch_mode); in php_oci_fetch_row()
1929 add_assoc_zval(placeholder, column->name, &element); in php_oci_fetch_row()
1937 add_assoc_null(placeholder, column->name); in php_oci_fetch_row()