Lines Matching refs:collection

46 	php_oci_collection *collection;  in php_oci_collection_create()  local
49 collection = emalloc(sizeof(php_oci_collection)); in php_oci_collection_create()
51 collection->connection = connection; in php_oci_collection_create()
52 collection->collection = NULL; in php_oci_collection_create()
53 GC_ADDREF(collection->connection->id); in php_oci_collection_create()
69 &(collection->tdo) in php_oci_collection_create()
89 (dvoid *) collection->tdo, in php_oci_collection_create()
114 (dvoid*) &(collection->coll_typecode), in php_oci_collection_create()
125 switch(collection->coll_typecode) { in php_oci_collection_create()
149 (dvoid*) &(collection->elem_ref), in php_oci_collection_create()
165 collection->elem_ref, in php_oci_collection_create()
168 &(collection->element_type) in php_oci_collection_create()
181 (dvoid*) &(collection->element_typecode), in php_oci_collection_create()
194 php_error_docref(NULL, E_WARNING, "Unknown collection type %d", collection->coll_typecode); in php_oci_collection_create()
205 collection->tdo, in php_oci_collection_create()
209 (dvoid **) &(collection->collection) in php_oci_collection_create()
219 PHP_OCI_REGISTER_RESOURCE(collection, le_collection); in php_oci_collection_create()
221 return collection; in php_oci_collection_create()
231 php_oci_collection_close(collection); in php_oci_collection_create()
238 int php_oci_collection_size(php_oci_collection *collection, sb4 *size) in php_oci_collection_size() argument
240 php_oci_connection *connection = collection->connection; in php_oci_collection_size()
243 …ETURN(errstatus, OCICollSize, (connection->env, connection->err, collection->collection, (sb4 *)si… in php_oci_collection_size()
257 int php_oci_collection_max(php_oci_collection *collection, zend_long *max) in php_oci_collection_max() argument
259 php_oci_connection *connection = collection->connection; in php_oci_collection_max()
261 PHP_OCI_CALL_RETURN(*max, OCICollMax, (connection->env, collection->collection)); in php_oci_collection_max()
270 int php_oci_collection_trim(php_oci_collection *collection, zend_long trim_size) in php_oci_collection_trim() argument
272 php_oci_connection *connection = collection->connection; in php_oci_collection_trim()
275 …rstatus, OCICollTrim, (connection->env, connection->err, (sb4) trim_size, collection->collection)); in php_oci_collection_trim()
289 int php_oci_collection_append_null(php_oci_collection *collection) in php_oci_collection_append_null() argument
292 php_oci_connection *connection = collection->connection; in php_oci_collection_append_null()
296 …CICollAppend, (connection->env, connection->err, (dvoid *)0, &null_index, collection->collection)); in php_oci_collection_append_null()
310 int php_oci_collection_append_date(php_oci_collection *collection, char *date, int date_len) in php_oci_collection_append_date() argument
314 php_oci_connection *connection = collection->connection; in php_oci_collection_append_date()
333 (OCIColl *) collection->collection in php_oci_collection_append_date()
350 int php_oci_collection_append_number(php_oci_collection *collection, char *number, int number_len) in php_oci_collection_append_number() argument
355 php_oci_connection *connection = collection->connection; in php_oci_collection_append_number()
374 (OCIColl *) collection->collection in php_oci_collection_append_number()
391 int php_oci_collection_append_string(php_oci_collection *collection, char *element, int element_len) in php_oci_collection_append_string() argument
395 php_oci_connection *connection = collection->connection; in php_oci_collection_append_string()
412 (OCIColl *) collection->collection in php_oci_collection_append_string()
429 int php_oci_collection_append(php_oci_collection *collection, char *element, int element_len) in php_oci_collection_append() argument
432 return php_oci_collection_append_null(collection); in php_oci_collection_append()
435 switch(collection->element_typecode) { in php_oci_collection_append()
437 return php_oci_collection_append_date(collection, element, element_len); in php_oci_collection_append()
441 return php_oci_collection_append_string(collection, element, element_len); in php_oci_collection_append()
455 return php_oci_collection_append_number(collection, element, element_len); in php_oci_collection_append()
459 …php_error_docref(NULL, E_NOTICE, "Unknown or unsupported type of element: %d", collection->element… in php_oci_collection_append()
470 int php_oci_collection_element_get(php_oci_collection *collection, zend_long index, zval *result_el… in php_oci_collection_element_get() argument
472 php_oci_connection *connection = collection->connection; in php_oci_collection_element_get()
488 collection->collection, in php_oci_collection_element_get()
512 switch (collection->element_typecode) { in php_oci_collection_element_get()
570 …php_error_docref(NULL, E_NOTICE, "Unknown or unsupported type of element: %d", collection->element… in php_oci_collection_element_get()
581 int php_oci_collection_element_set_null(php_oci_collection *collection, zend_long index) in php_oci_collection_element_set_null() argument
584 php_oci_connection *connection = collection->connection; in php_oci_collection_element_set_null()
588 …(connection->env, connection->err, (ub4) index, (dvoid *)"", &null_index, collection->collection)); in php_oci_collection_element_set_null()
602 int php_oci_collection_element_set_date(php_oci_collection *collection, zend_long index, char *date… in php_oci_collection_element_set_date() argument
606 php_oci_connection *connection = collection->connection; in php_oci_collection_element_set_date()
626 (OCIColl *) collection->collection in php_oci_collection_element_set_date()
643 int php_oci_collection_element_set_number(php_oci_collection *collection, zend_long index, char *nu… in php_oci_collection_element_set_number() argument
648 php_oci_connection *connection = collection->connection; in php_oci_collection_element_set_number()
668 (OCIColl *) collection->collection in php_oci_collection_element_set_number()
685 int php_oci_collection_element_set_string(php_oci_collection *collection, zend_long index, char *el… in php_oci_collection_element_set_string() argument
689 php_oci_connection *connection = collection->connection; in php_oci_collection_element_set_string()
707 (OCIColl *) collection->collection in php_oci_collection_element_set_string()
724 int php_oci_collection_element_set(php_oci_collection *collection, zend_long index, char *value, in… in php_oci_collection_element_set() argument
727 return php_oci_collection_element_set_null(collection, index); in php_oci_collection_element_set()
730 switch(collection->element_typecode) { in php_oci_collection_element_set()
732 return php_oci_collection_element_set_date(collection, index, value, value_len); in php_oci_collection_element_set()
736 return php_oci_collection_element_set_string(collection, index, value, value_len); in php_oci_collection_element_set()
750 return php_oci_collection_element_set_number(collection, index, value, value_len); in php_oci_collection_element_set()
754 …php_error_docref(NULL, E_NOTICE, "Unknown or unsupported type of element: %d", collection->element… in php_oci_collection_element_set()
770 …ign, (connection->env, connection->err, collection_from->collection, collection_dest->collection)); in php_oci_collection_assign()
784 void php_oci_collection_close(php_oci_collection *collection) in php_oci_collection_close() argument
786 php_oci_connection *connection = collection->connection; in php_oci_collection_close()
789 if (collection->collection) { in php_oci_collection_close()
790 …atus, OCIObjectFree, (connection->env, connection->err, (dvoid *)collection->collection, (ub2)OCI_… in php_oci_collection_close()
800 zend_list_delete(collection->connection->id); in php_oci_collection_close()
801 efree(collection); in php_oci_collection_close()