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(__DIR__.'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require(__DIR__.'/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--EXPECTF--
31Test - SQLT_CLOB
32
33Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
34Test - SQLT_BLOB
35
36Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
37Test - OCI_B_CLOB
38
39Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
40Test - OCI_B_BLOB
41
42Warning: oci_bind_by_name(): Unable to find descriptor property in %sbind_unsupported_3.php on line %d
43