Lines Matching refs:outcol
212 php_oci_out_column *outcol = data; in php_oci_cleanup_pre_fetch() local
214 if (!outcol->is_descr && !outcol->is_cursor) in php_oci_cleanup_pre_fetch()
217 switch(outcol->data_type) { in php_oci_cleanup_pre_fetch()
222 if (outcol->descid) { in php_oci_cleanup_pre_fetch()
223 zend_list_delete(outcol->descid); in php_oci_cleanup_pre_fetch()
224 outcol->descid = 0; in php_oci_cleanup_pre_fetch()
228 if (outcol->stmtid) { in php_oci_cleanup_pre_fetch()
229 zend_list_delete(outcol->stmtid); in php_oci_cleanup_pre_fetch()
230 outcol->stmtid = 0; in php_oci_cleanup_pre_fetch()
231 outcol->nested_statement = NULL; in php_oci_cleanup_pre_fetch()
412 php_oci_out_column *outcol = (php_oci_out_column *)ctx; in php_oci_define_callback() local
415 if (!outcol) { in php_oci_define_callback()
421 switch(outcol->data_type) { in php_oci_define_callback()
425 nested_stmt = php_oci_statement_create(outcol->statement->connection, NULL, 0 TSRMLS_CC); in php_oci_define_callback()
429 nested_stmt->parent_stmtid = outcol->statement->id; in php_oci_define_callback()
430 zend_list_addref(outcol->statement->id); in php_oci_define_callback()
431 outcol->nested_statement = nested_stmt; in php_oci_define_callback()
432 outcol->stmtid = nested_stmt->id; in php_oci_define_callback()
435 *alenpp = &(outcol->retlen4); in php_oci_define_callback()
437 *indpp = &(outcol->indicator); in php_oci_define_callback()
438 *rcpp = &(outcol->retcode); in php_oci_define_callback()
449 if (outcol->data_type == SQLT_BFILE) { in php_oci_define_callback()
451 } else if (outcol->data_type == SQLT_RDD ) { in php_oci_define_callback()
457 descr = php_oci_lob_create(outcol->statement->connection, dtype TSRMLS_CC); in php_oci_define_callback()
461 outcol->descid = descr->id; in php_oci_define_callback()
462 descr->charset_form = outcol->charset_form; in php_oci_define_callback()
465 *alenpp = &(outcol->retlen4); in php_oci_define_callback()
467 *indpp = &(outcol->indicator); in php_oci_define_callback()
468 *rcpp = &(outcol->retcode); in php_oci_define_callback()
482 php_oci_out_column *outcol; in php_oci_statement_execute() local
593 …e(statement->columns, counter, &column, sizeof(php_oci_out_column), (void**) &outcol) == FAILURE) { in php_oci_statement_execute()
609 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->dat… in php_oci_statement_execute()
619 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->cha… in php_oci_statement_execute()
629 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->cha… in php_oci_statement_execute()
639 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->dat… in php_oci_statement_execute()
648 outcol->storage_size4 = outcol->data_size; in php_oci_statement_execute()
649 outcol->retlen = outcol->data_size; in php_oci_statement_execute()
652 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->sca… in php_oci_statement_execute()
662 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->pre… in php_oci_statement_execute()
672 …CIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid **)&colname, (ub4 *)&outcol->name_len, (ub4)OC… in php_oci_statement_execute()
682 outcol->name = estrndup((char*) colname, outcol->name_len); in php_oci_statement_execute()
686 …if (zend_hash_find(statement->defines,outcol->name,outcol->name_len,(void **) &outcol->define) == … in php_oci_statement_execute()
687 if (outcol->define->type) { in php_oci_statement_execute()
688 outcol->data_type = outcol->define->type; in php_oci_statement_execute()
694 switch (outcol->data_type) { in php_oci_statement_execute()
696 outcol->statement = statement; /* parent handle */ in php_oci_statement_execute()
699 outcol->is_cursor = 1; in php_oci_statement_execute()
700 outcol->statement->has_descr = 1; in php_oci_statement_execute()
701 outcol->storage_size4 = -1; in php_oci_statement_execute()
702 outcol->retlen = -1; in php_oci_statement_execute()
710 outcol->statement = statement; /* parent handle */ in php_oci_statement_execute()
712 define_type = outcol->data_type; in php_oci_statement_execute()
713 outcol->is_descr = 1; in php_oci_statement_execute()
714 outcol->statement->has_descr = 1; in php_oci_statement_execute()
715 outcol->storage_size4 = -1; in php_oci_statement_execute()
716 outcol->chunk_size = 0; in php_oci_statement_execute()
722 if (outcol->data_type == SQLT_LBI) { in php_oci_statement_execute()
727 outcol->storage_size4 = PHP_OCI_MAX_DATA_SIZE; in php_oci_statement_execute()
728 outcol->piecewise = 1; in php_oci_statement_execute()
735 if (outcol->data_type == SQLT_BIN) { in php_oci_statement_execute()
738 if ((outcol->data_type == SQLT_DAT) || (outcol->data_type == SQLT_NUM) in php_oci_statement_execute()
740 || (outcol->data_type == SQLT_TIMESTAMP) in php_oci_statement_execute()
743 || (outcol->data_type == SQLT_TIMESTAMP_TZ) in php_oci_statement_execute()
746 || (outcol->data_type == SQLT_TIMESTAMP_LTZ) in php_oci_statement_execute()
749 || (outcol->data_type == SQLT_INTERVAL_YM) in php_oci_statement_execute()
752 || (outcol->data_type == SQLT_INTERVAL_DS) in php_oci_statement_execute()
755 outcol->storage_size4 = 512; /* XXX this should fit "most" NLS date-formats and Numbers */ in php_oci_statement_execute()
757 } else if (outcol->data_type == SQLT_IBFLOAT || outcol->data_type == SQLT_IBDOUBLE) { in php_oci_statement_execute()
758 outcol->storage_size4 = 1024; in php_oci_statement_execute()
761 outcol->storage_size4++; /* add one for string terminator */ in php_oci_statement_execute()
764 outcol->storage_size4 *= 3; in php_oci_statement_execute()
767 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute()
768 memset(buf, 0, outcol->storage_size4); in php_oci_statement_execute()
777 (OCIDefine **)&outcol->oci_define, /* IN/OUT pointer to a pointer to a define handle */ in php_oci_statement_execute()
781 outcol->storage_size4, /* IN The size of each valuep buffer in bytes */ in php_oci_statement_execute()
783 (dvoid *)&outcol->indicator, /* IN pointer to an indicator variable or arr */ in php_oci_statement_execute()
795 (OCIDefine **)&outcol->oci_define, /* IN/OUT pointer to a pointer to a define handle */ in php_oci_statement_execute()
799 outcol->storage_size4, /* IN The size of each valuep buffer in bytes */ in php_oci_statement_execute()
801 (dvoid *)&outcol->indicator, /* IN pointer to an indicator variable or arr */ in php_oci_statement_execute()
802 (ub2 *)&outcol->retlen, /* IN/OUT Pointer to array of length of data fetched */ in php_oci_statement_execute()
803 (ub2 *)&outcol->retcode, /* OUT Pointer to array of column-level return codes */ in php_oci_statement_execute()
817 switch (outcol->data_type) { in php_oci_statement_execute()
826 outcol->oci_define, in php_oci_statement_execute()
828 (dvoid *)outcol, in php_oci_statement_execute()