blob: d3e5375df6c4a5adcc5aeabce587f80653d60a76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--TEST--
Bind with various unsupported 10g+ bind types
--SKIPIF--
<?php
if (!extension_loaded('oci8')) die("skip no oci8 extension");
if (preg_match('/^1[01]\./', oci_client_version()) !== 1) {
die ("skip expected output only valid for Oracle 10g+ clients");
}
?>
--FILE--
<?php
require(dirname(__FILE__).'/connect.inc');
$types = array(
"SQLT_BDOUBLE" => SQLT_BDOUBLE,
"SQLT_BFLOAT" => SQLT_BFLOAT,
);
foreach ($types as $t => $v) {
echo "Test - $t\n";
$s = oci_parse($c, "select * from dual where dummy = :c1");
$c1 = "Doug";
oci_bind_by_name($s, ":c1", $c1, -1, $v);
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Test - SQLT_BDOUBLE
Warning: oci_bind_by_name(): Unknown or unsupported datatype given: 22 in %sbind_unsupported_2.php on line %d
Test - SQLT_BFLOAT
Warning: oci_bind_by_name(): Unknown or unsupported datatype given: 21 in %sbind_unsupported_2.php on line %d
===DONE===
|