From 7be30eb78c874bf887f5d2aee290f44d2febfa3d Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Wed, 25 Nov 2015 12:43:05 +1100 Subject: [PATCH] Improve test portability --- ext/oci8/tests/bind_sqltnum.phpt | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/ext/oci8/tests/bind_sqltnum.phpt b/ext/oci8/tests/bind_sqltnum.phpt index 3d29aeb4a8c..6612745e574 100644 --- a/ext/oci8/tests/bind_sqltnum.phpt +++ b/ext/oci8/tests/bind_sqltnum.phpt @@ -29,7 +29,7 @@ oci8_test_sql_execute($c, $stmtarray); function check_col($c, $colname, $id) { - $s = oci_parse($c, "select $colname from bind_sqltnum_tab where id = :id"); + $s = oci_parse($c, "select dump($colname) from bind_sqltnum_tab where id = :id"); oci_bind_by_name($s, ":id", $id); oci_execute($s); oci_fetch_all($s, $r); @@ -198,73 +198,73 @@ Warning: oci_execute(): ORA-12899: %s "%s"."BIND_SQLTNUM_TAB"."VARCHAR2_T10" (%s TEST42 insert numbers SQLT_NUM array(1) { - ["NUMBER_T"]=> + ["DUMP(NUMBER_T)"]=> array(1) { [0]=> - NULL + string(29) "Typ=2 Len=8: 42,0,0,0,0,0,0,0" } } TEST43 insert numbers SQLT_NUM array(1) { - ["NUMBER_T"]=> + ["DUMP(NUMBER_T)"]=> array(1) { [0]=> - NULL + string(29) "Typ=2 Len=8: 42,0,0,0,0,0,0,0" } } TEST44 array(1) { - ["NUMBER_T"]=> + ["DUMP(NUMBER_T)"]=> array(1) { [0]=> - string(2) "-~" + string(28) "Typ=2 Len=8: 0,0,0,0,0,0,0,0" } } TEST45 array(1) { - ["NUMBER_T"]=> + ["DUMP(NUMBER_T)"]=> array(1) { [0]=> - NULL + string(44) "Typ=2 Len=8: 233,255,255,255,255,255,255,255" } } TEST46 insert numbers array(1) { - ["NUMBER_T"]=> + ["DUMP(NUMBER_T)"]=> array(1) { [0]=> - NULL + string(44) "Typ=2 Len=8: 233,255,255,255,255,255,255,255" } } TEST47 array(1) { - ["NUMBER_T"]=> + ["DUMP(NUMBER_T)"]=> array(1) { [0]=> - NULL + string(29) "Typ=2 Len=8: 23,0,0,0,0,0,0,0" } } TEST48 array(1) { - ["NUMBER_T92"]=> + ["DUMP(NUMBER_T92)"]=> array(1) { [0]=> - string(1) "0" + string(16) "Typ=2 Len=1: 128" } } TEST49 array(1) { - ["NUMBER_T92"]=> + ["DUMP(NUMBER_T92)"]=> array(1) { [0]=> - string(1) "0" + string(16) "Typ=2 Len=1: 128" } } @@ -272,7 +272,7 @@ TEST50 Warning: oci_execute(): ORA-01438: %s in %sbind_sqltnum.php on line %d array(1) { - ["NUMBER_T92"]=> + ["DUMP(NUMBER_T92)"]=> array(0) { } }