2
collections and strings
4
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
8
require dirname(__FILE__)."/connect.inc";
14
$statement = OCIParse($c,$ora_sql);
15
@OCIExecute($statement);
17
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
19
$statement = OCIParse($c,$ora_sql);
20
OCIExecute($statement);
23
$coll1 = ocinewcollection($c, $type_name);
24
$coll2 = ocinewcollection($c, $type_name);
26
var_dump(oci_collection_append($coll1, "string"));
27
var_dump(oci_collection_append($coll1, "string"));
29
var_dump(oci_collection_assign($coll2, $coll1));
31
var_dump(oci_collection_element_get($coll2, 0));
35
require dirname(__FILE__)."/drop_type.inc";