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

30 lines
587 B
Plaintext
Raw Normal View History

2006-01-14 22:22:48 +00:00
--TEST--
Bug #36010 (Crash when executing SQL statement with lob parameter twice)
2006-01-14 22:22:48 +00:00
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>
2006-01-14 22:22:48 +00:00
--FILE--
<?php
2018-09-24 06:38:39 +00:00
require __DIR__.'/connect.inc';
2006-01-14 22:22:48 +00:00
function f($conn)
{
2020-02-03 21:52:20 +00:00
$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);
2006-01-14 22:22:48 +00:00
}
f($c);
f($c);
echo "Done\n";
?>
--EXPECT--
Done