Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / oci8 / tests / array_bind_bdouble.phpt
blobfb173654bff3594ebb9786133da28617dc99dda6
1 --TEST--
2 Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE
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_BDOUBLE')) die('skip SQLT_BDOUBLE 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_BDOUBLE);
18 echo "Done\n";
20 --EXPECTF--
21 Warning: oci_bind_array_by_name(): Unknown or unsupported datatype given: 22 in %sarray_bind_bdouble.php on line %d
22 Done