Lines Matching refs:outcol
217 php_oci_out_column *outcol = (php_oci_out_column*) Z_PTR_P(data); in php_oci_cleanup_pre_fetch() local
219 if (!outcol->is_descr && !outcol->is_cursor) in php_oci_cleanup_pre_fetch()
222 switch(outcol->data_type) { in php_oci_cleanup_pre_fetch()
227 if (outcol->descid) { in php_oci_cleanup_pre_fetch()
228 zend_list_delete(outcol->descid); in php_oci_cleanup_pre_fetch()
229 outcol->descid = 0; in php_oci_cleanup_pre_fetch()
233 if (outcol->stmtid) { in php_oci_cleanup_pre_fetch()
234 zend_list_delete(outcol->stmtid); in php_oci_cleanup_pre_fetch()
235 outcol->stmtid = 0; in php_oci_cleanup_pre_fetch()
236 outcol->nested_statement = NULL; in php_oci_cleanup_pre_fetch()
427 php_oci_out_column *outcol = (php_oci_out_column *)ctx; in php_oci_define_callback() local
429 if (!outcol) { in php_oci_define_callback()
435 switch(outcol->data_type) { in php_oci_define_callback()
439 nested_stmt = php_oci_statement_create(outcol->statement->connection, NULL, 0); in php_oci_define_callback()
443 nested_stmt->parent_stmtid = outcol->statement->id; in php_oci_define_callback()
444 GC_ADDREF(outcol->statement->id); in php_oci_define_callback()
445 outcol->nested_statement = nested_stmt; in php_oci_define_callback()
446 outcol->stmtid = nested_stmt->id; in php_oci_define_callback()
449 *alenpp = &(outcol->retlen4); in php_oci_define_callback()
451 *indpp = &(outcol->indicator); in php_oci_define_callback()
452 *rcpp = &(outcol->retcode); in php_oci_define_callback()
463 if (outcol->data_type == SQLT_BFILE) { in php_oci_define_callback()
465 } else if (outcol->data_type == SQLT_RDD ) { in php_oci_define_callback()
471 descr = php_oci_lob_create(outcol->statement->connection, dtype); in php_oci_define_callback()
475 outcol->descid = descr->id; in php_oci_define_callback()
476 descr->charset_form = outcol->charset_form; in php_oci_define_callback()
479 *alenpp = &(outcol->retlen4); in php_oci_define_callback()
481 *indpp = &(outcol->indicator); in php_oci_define_callback()
482 *rcpp = &(outcol->retcode); in php_oci_define_callback()
496 php_oci_out_column *outcol; in php_oci_statement_execute() local
604 outcol = (php_oci_out_column *) ecalloc(1, sizeof(php_oci_out_column)); in php_oci_statement_execute()
606 outcol = zend_hash_index_update_ptr(statement->columns, counter, outcol); in php_oci_statement_execute()
618 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->dat… in php_oci_statement_execute()
628 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->cha… in php_oci_statement_execute()
638 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->cha… in php_oci_statement_execute()
648 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->dat… in php_oci_statement_execute()
657 outcol->storage_size4 = outcol->data_size; in php_oci_statement_execute()
658 outcol->retlen = outcol->data_size; in php_oci_statement_execute()
661 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->sca… in php_oci_statement_execute()
671 …PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->pre… in php_oci_statement_execute()
681 …CIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid **)&colname, (ub4 *)&outcol->name_len, (ub4)OC… in php_oci_statement_execute()
691 outcol->name = ecalloc(1, outcol->name_len + 1); in php_oci_statement_execute()
692 memcpy(outcol->name, colname, outcol->name_len); in php_oci_statement_execute()
696 …if ((outcol->define = zend_hash_str_find_ptr(statement->defines, outcol->name, outcol->name_len)) … in php_oci_statement_execute()
697 if (outcol->define->type) { in php_oci_statement_execute()
698 outcol->data_type = outcol->define->type; in php_oci_statement_execute()
704 switch (outcol->data_type) { in php_oci_statement_execute()
706 outcol->statement = statement; /* parent handle */ in php_oci_statement_execute()
709 outcol->is_cursor = 1; in php_oci_statement_execute()
710 outcol->statement->has_descr = 1; in php_oci_statement_execute()
711 outcol->storage_size4 = -1; in php_oci_statement_execute()
712 outcol->retlen = -1; in php_oci_statement_execute()
720 outcol->statement = statement; /* parent handle */ in php_oci_statement_execute()
722 define_type = outcol->data_type; in php_oci_statement_execute()
723 outcol->is_descr = 1; in php_oci_statement_execute()
724 outcol->statement->has_descr = 1; in php_oci_statement_execute()
725 outcol->storage_size4 = -1; in php_oci_statement_execute()
726 outcol->chunk_size = 0; in php_oci_statement_execute()
732 if (outcol->data_type == SQLT_LBI) { in php_oci_statement_execute()
737 outcol->storage_size4 = PHP_OCI_MAX_DATA_SIZE; in php_oci_statement_execute()
738 outcol->piecewise = 1; in php_oci_statement_execute()
745 if (outcol->data_type == SQLT_BIN) { in php_oci_statement_execute()
748 if ((outcol->data_type == SQLT_DAT) || (outcol->data_type == SQLT_NUM) in php_oci_statement_execute()
750 || (outcol->data_type == SQLT_TIMESTAMP) in php_oci_statement_execute()
753 || (outcol->data_type == SQLT_TIMESTAMP_TZ) in php_oci_statement_execute()
756 || (outcol->data_type == SQLT_TIMESTAMP_LTZ) in php_oci_statement_execute()
759 || (outcol->data_type == SQLT_INTERVAL_YM) in php_oci_statement_execute()
762 || (outcol->data_type == SQLT_INTERVAL_DS) in php_oci_statement_execute()
765 outcol->storage_size4 = 512; /* XXX this should fit "most" NLS date-formats and Numbers */ in php_oci_statement_execute()
767 } else if (outcol->data_type == SQLT_IBFLOAT || outcol->data_type == SQLT_IBDOUBLE) { in php_oci_statement_execute()
768 outcol->storage_size4 = 1024; in php_oci_statement_execute()
771 outcol->storage_size4++; /* add one for string terminator */ in php_oci_statement_execute()
774 outcol->storage_size4 *= 3; in php_oci_statement_execute()
777 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute()
778 memset(buf, 0, outcol->storage_size4); in php_oci_statement_execute()
787 (OCIDefine **)&outcol->oci_define, /* IN/OUT pointer to a pointer to a define handle */ in php_oci_statement_execute()
791 outcol->storage_size4, /* IN The size of each valuep buffer in bytes */ in php_oci_statement_execute()
793 (dvoid *)&outcol->indicator, /* IN pointer to an indicator variable or arr */ in php_oci_statement_execute()
805 (OCIDefine **)&outcol->oci_define, /* IN/OUT pointer to a pointer to a define handle */ in php_oci_statement_execute()
809 outcol->storage_size4, /* IN The size of each valuep buffer in bytes */ in php_oci_statement_execute()
811 (dvoid *)&outcol->indicator, /* IN pointer to an indicator variable or arr */ in php_oci_statement_execute()
812 (ub2 *)&outcol->retlen, /* IN/OUT Pointer to array of length of data fetched */ in php_oci_statement_execute()
813 (ub2 *)&outcol->retcode, /* OUT Pointer to array of column-level return codes */ in php_oci_statement_execute()
827 switch (outcol->data_type) { in php_oci_statement_execute()
836 outcol->oci_define, in php_oci_statement_execute()
838 (dvoid *)outcol, in php_oci_statement_execute()