1--TEST--
2Bind 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
6require(dirname(__FILE__).'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require(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
20foreach ($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--
33Test - SQLT_CLOB
34
35Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
36Test - SQLT_BLOB
37
38Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
39Test - OCI_B_CLOB
40
41Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
42Test - OCI_B_BLOB
43
44Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
45===DONE===
46