com php-src: Improve test portability: ext/oci8/tests/bind_ sqltnum.phpt
| From: | Christopher Jones | Date: | Wed, 25 Nov 2015 01:43:05 +0000 |
| Subject: | com php-src: Improve test portability: ext/oci8/tests/bind_ sqltnum.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90005@lists.php.net to get a copy of this message | ||
Commit: 7be30eb78c874bf887f5d2aee290f44d2febfa3d
Author: Christopher Jones <christopher.jones@oracle.com> Wed, 25 Nov 2015 12:43:05
+1100
Parents: d10ee1eef11d4758efd7f0df14562c8b51891efb
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7be30eb78c874bf887f5d2aee290f44d2febfa3d
Log:
Improve test portability
Changed paths:
M ext/oci8/tests/bind_sqltnum.phpt
Diff:
diff --git a/ext/oci8/tests/bind_sqltnum.phpt b/ext/oci8/tests/bind_sqltnum.phpt
index 3d29aeb..6612745 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) {
}
}