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