| Current Path : /var/www/html/oci8-3.0.1/tests/ |
| Current File : /var/www/html/oci8-3.0.1/tests/lob_020.phpt |
--TEST--
oci_lob_write()/erase()/read() with CLOBs
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
require __DIR__.'/connect.inc';
require __DIR__.'/create_table.inc';
$ora_sql = "INSERT INTO
".$schema.$table_name." (Clob)
VALUES (empty_Clob())
RETURNING
clob
INTO :v_clob ";
$statement = oci_parse($c,$ora_sql);
$clob = oci_new_descriptor($c,OCI_D_LOB);
oci_bind_by_name($statement,":v_clob", $clob,-1,OCI_B_CLOB);
oci_execute($statement, OCI_DEFAULT);
var_dump($clob);
$str = "