xref: /PHP-7.2/ext/oci8/tests/array_bind_uin.phpt (revision a2c0f872)
1--TEST--
2Unsupported type: oci_bind_array_by_name() and SQLT_UIN
3--SKIPIF--
4<?php
5$target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6require(dirname(__FILE__).'/skipif.inc');
7?>
8--FILE--
9<?php
10
11require dirname(__FILE__).'/connect.inc';
12
13$statement = oci_parse($c, "BEGIN array_bind_uin_pkg.iobind(:c1); END;");
14$array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
15oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_UIN);
16
17echo "Done\n";
18?>
19--EXPECTF--
20Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 68 in %sarray_bind_uin.php on line %d
21Done
22