Lines Matching refs:column
1555 php_oci_out_column *column = (php_oci_out_column *) data; in php_oci_column_hash_dtor() local
1558 if (column->stmtid) { in php_oci_column_hash_dtor()
1559 zend_list_delete(column->stmtid); in php_oci_column_hash_dtor()
1562 if (column->is_descr) { in php_oci_column_hash_dtor()
1563 zend_list_delete(column->descid); in php_oci_column_hash_dtor()
1566 if (column->data) { in php_oci_column_hash_dtor()
1567 efree(column->data); in php_oci_column_hash_dtor()
1570 if (column->name) { in php_oci_column_hash_dtor()
1571 efree(column->name); in php_oci_column_hash_dtor()
2489 int php_oci_column_to_zval(php_oci_out_column *column, zval *value, int mode TSRMLS_DC) in php_oci_column_to_zval() argument
2497 if (column->indicator == -1) { /* column is NULL */ in php_oci_column_to_zval()
2502 if (column->is_cursor) { /* REFCURSOR -> simply return the statement id */ in php_oci_column_to_zval()
2503 ZVAL_RESOURCE(value, column->stmtid); in php_oci_column_to_zval()
2504 zend_list_addref(column->stmtid); in php_oci_column_to_zval()
2505 } else if (column->is_descr) { in php_oci_column_to_zval()
2507 if (column->data_type != SQLT_RDD) { in php_oci_column_to_zval()
2511 descriptor = (php_oci_descriptor *) zend_list_find(column->descid, &rsrc_type); in php_oci_column_to_zval()
2514 … php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find LOB descriptor #%d", column->descid); in php_oci_column_to_zval()
2523 if (column->data_type != SQLT_RDD && (mode & PHP_OCI_RETURN_LOBS)) { in php_oci_column_to_zval()
2542 add_property_resource(value, "descriptor", column->descid); in php_oci_column_to_zval()
2543 zend_list_addref(column->descid); in php_oci_column_to_zval()
2546 switch (column->retcode) { in php_oci_column_to_zval()
2549 if (column->piecewise) { in php_oci_column_to_zval()
2550 column_size = column->retlen4; in php_oci_column_to_zval()
2552 column_size = column->retlen; in php_oci_column_to_zval()
2561 ZVAL_STRINGL(value, column->data, column_size, 1); in php_oci_column_to_zval()
2575 php_oci_out_column *column; in php_oci_fetch_row() local
2630 column = php_oci_statement_get_column(statement, i + 1, NULL, 0 TSRMLS_CC); in php_oci_fetch_row()
2632 if (column == NULL) { in php_oci_fetch_row()
2635 if ((column->indicator == -1) && ((fetch_mode & PHP_OCI_RETURN_NULLS) == 0)) { in php_oci_fetch_row()
2639 if (!(column->indicator == -1)) { in php_oci_fetch_row()
2643 php_oci_column_to_zval(column, element, fetch_mode TSRMLS_CC); in php_oci_fetch_row()
2652 add_assoc_zval(return_value, column->name, element); in php_oci_fetch_row()
2660 add_assoc_null(return_value, column->name); in php_oci_fetch_row()