Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / oci8 / tests / coll_010_func.phpt
blobc5379ac9f3bf1490c749c7e2f6c5a9b5f81ddf4f
1 --TEST--
2 collections and nulls
3 --SKIPIF--
4 <?php
5 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6 require(dirname(__FILE__).'/skipif.inc');
7 ?> 
8 --FILE--
9 <?php
11 require dirname(__FILE__)."/connect.inc";
13 $ora_sql = "DROP TYPE
14                                                 ".$type_name."
15                    ";
17 $statement = OCIParse($c,$ora_sql);
18 @OCIExecute($statement);
20 $ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
21                           
22 $statement = OCIParse($c,$ora_sql);
23 OCIExecute($statement);
26 $coll1 = ocinewcollection($c, $type_name);
27 $coll2 = ocinewcollection($c, $type_name);
29 var_dump(oci_collection_append($coll1, null));
31 var_dump(oci_collection_assign($coll2, $coll1));
33 var_dump(oci_collection_element_get($coll2, 0));
35 echo "Done\n";
37 require dirname(__FILE__)."/drop_type.inc";
40 --EXPECT--
41 bool(true)
42 bool(true)
43 NULL
44 Done