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

30 lines
593 B
Plaintext
Raw Normal View History

2006-01-14 22:23:43 +00:00
--TEST--
2007-05-07 18:03:01 +00:00
Bug #36010 (Crash when executing SQL statment with lob parameter twice)
2006-01-14 22:23:43 +00:00
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
?>
2006-01-14 22:23:43 +00:00
--FILE--
<?php
require dirname(__FILE__).'/connect.inc';
function f($conn)
{
$sql = "begin :p_clob := 'lob string'; end;";
$stid = oci_parse($conn, $sql);
$clob = oci_new_descriptor($conn, OCI_D_LOB);
oci_bind_by_name($stid, ":p_clob", $clob, -1, OCI_B_CLOB);
$r = oci_execute($stid, OCI_DEFAULT);
}
f($c);
f($c);
echo "Done\n";
?>
--EXPECT--
Done