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

41 lines
731 B
Plaintext
Raw Normal View History

2005-12-01 13:39:48 +00:00
--TEST--
statement cache
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => true); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
?>
2005-12-01 13:39:48 +00:00
--FILE--
<?php
// Note: with TimesTen, the column will be called "EXP"
2005-12-01 13:39:48 +00:00
require dirname(__FILE__)."/connect.inc";
$pc = oci_pconnect($user, $password, $dbase);
2006-08-22 11:09:12 +00:00
$stmt = oci_parse($pc, "select 1+3 from dual");
2005-12-01 13:39:48 +00:00
oci_execute($stmt);
var_dump(oci_fetch_array($stmt));
2006-08-22 11:09:12 +00:00
$stmt = oci_parse($pc, "select 1+3 from dual");
2005-12-01 13:39:48 +00:00
oci_execute($stmt);
var_dump(oci_fetch_array($stmt));
echo "Done\n";
?>
2018-09-24 06:38:39 +00:00
--EXPECTF--
2005-12-01 13:39:48 +00:00
array(2) {
[0]=>
string(1) "4"
["%r(1\+3|EXP)%r"]=>
2005-12-01 13:39:48 +00:00
string(1) "4"
}
array(2) {
[0]=>
string(1) "4"
["%r(1\+3|EXP)%r"]=>
2005-12-01 13:39:48 +00:00
string(1) "4"
}
Done