Improve test portability

This commit is contained in:
Christopher Jones 2015-11-25 12:43:05 +11:00
parent d10ee1eef1
commit 7be30eb78c

View File

@ -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) {
}
}