php-src/ext/oci8/tests/coll_017_func.phpt

42 lines
797 B
Plaintext
Raw Normal View History

2005-09-06 19:33:18 +00:00
--TEST--
collections and nulls (2)
2005-12-06 19:26:57 +00:00
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
?>
2005-09-06 19:33:18 +00:00
--FILE--
<?php
require dirname(__FILE__)."/connect.inc";
$ora_sql = "DROP TYPE
".$type_name."
";
$statement = OCIParse($c,$ora_sql);
@OCIExecute($statement);
$ora_sql = "CREATE TYPE ".$type_name." AS TABLE OF VARCHAR(10)";
2018-09-24 06:38:39 +00:00
2005-09-06 19:33:18 +00:00
$statement = OCIParse($c,$ora_sql);
OCIExecute($statement);
$coll1 = ocinewcollection($c, $type_name);
var_dump(oci_collection_append($coll1, "string"));
var_dump(oci_collection_element_assign($coll1, 0, null));
var_dump(oci_collection_element_get($coll1, 0));
echo "Done\n";
require dirname(__FILE__)."/drop_type.inc";
?>
--EXPECT--
bool(true)
bool(true)
NULL
Done