Annotation of embedaddon/php/ext/oci8/tests/bind_unsupported_3.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bind with various bind types not supported by TimesTen
3: --SKIPIF--
4: <?php
5: $target_dbs = array('oracledb' => false, 'timesten' => true); // test runs on these DBs
6: require(dirname(__FILE__).'/skipif.inc');
7: ?>
8: --FILE--
9: <?php
10:
11: require(dirname(__FILE__).'/connect.inc');
12:
13: $types = array(
14: "SQLT_CLOB" => SQLT_CLOB,
15: "SQLT_BLOB" => SQLT_BLOB,
16: "OCI_B_CLOB" => OCI_B_CLOB,
17: "OCI_B_BLOB" => OCI_B_BLOB,
18: );
19:
20: foreach ($types as $t => $v) {
21:
22: echo "Test - $t\n";
23:
24: $s = oci_parse($c, "select * from dual where dummy = :c1");
25: $c1 = "Doug";
26: oci_bind_by_name($s, ":c1", $c1, -1, $v);
27: }
28:
29: ?>
30: ===DONE===
31: <?php exit(0); ?>
32: --EXPECTF--
33: Test - SQLT_CLOB
34:
35: Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
36: Test - SQLT_BLOB
37:
38: Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
39: Test - OCI_B_CLOB
40:
41: Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
42: Test - OCI_B_BLOB
43:
44: Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
45: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>