Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / oci8 / tests / array_bind_bfloat.phpt
blobfdd43958cd71ff193f4c38502a17e280a4ee75e3
1 --TEST--
2 Unsupported type: oci_bind_array_by_name() and SQLT_BFLOAT
3 --SKIPIF--
4 <?php
5 $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on these DBs
6 require(dirname(__FILE__).'/skipif.inc');
7 if (!defined('SQLT_BFLOAT')) die('skip SQLT_BFLOAT type not available on older Oracle clients');
8 ?> 
9 --FILE--
10 <?php
12 require dirname(__FILE__).'/connect.inc';
14 $statement = oci_parse($c, "BEGIN ARRAYBINDPKG1.iobind(:c1); END;");
15 $array = Array(1.243,2.5658,3.4234,4.2123,5.9999);
16 oci_bind_array_by_name($statement, ":c1", $array, 5, 5, SQLT_BFLOAT);
18 echo "Done\n";
20 --EXPECTF--
21 Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 21 in %sarray_bind_bfloat.php on line %d
22 Done