Skip to content

Commit 35356b6

Browse files
committed
Handle deprecation of null to ?string in tests
Probably not the ideal fix; should perhaps look at changing the stub instead of the callsites.
1 parent a88e407 commit 35356b6

16 files changed

+18
-18
lines changed

tests/test_023_ColumnPrivileges.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $conn = db2_connect($database, $user, $password);
1111

1212
if ($conn != 0)
1313
{
14-
$stmt = db2_column_privileges($conn, NULL, NULL, 'ANIMALS');
14+
@$stmt = db2_column_privileges($conn, NULL, NULL, 'ANIMALS');
1515
$row = db2_fetch_array($stmt);
1616
print $row[2] . "\n";
1717
print $row[3] . "\n";

tests/test_024_ForeignKeys.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if ($conn != 0)
2020
$statement = "INSERT INTO test_foreign_keys VALUES (1)";
2121
$result = db2_exec($conn, $statement);
2222

23-
$stmt = db2_foreign_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
23+
@$stmt = db2_foreign_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
2424
$row = db2_fetch_array($stmt);
2525
echo $row[2] . "\n";
2626
echo $row[3] . "\n";

tests/test_025_PrimaryKeys.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if ($conn != 0)
2525
$statement = "INSERT INTO test_foreign_keys VALUES (1)";
2626
$result = db2_exec($conn, $statement);
2727

28-
$stmt = db2_primary_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
28+
$stmt = @db2_primary_keys($conn, NULL, NULL, 'TEST_PRIMARY_KEYS');
2929
$row = db2_fetch_array($stmt);
3030
echo $row[2] . "\n";
3131
echo $row[3] . "\n";

tests/test_060_Tables_01.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $result = @db2_exec($conn, $create);
2626

2727
if ($conn)
2828
{
29-
$result = db2_tables($conn,NULL,strtoupper('t'));
29+
$result = @db2_tables($conn,NULL,strtoupper('t'));
3030
$i = 0;
3131
while ($row=db2_fetch_both($result))
3232
{

tests/test_061_Tables_02.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $result = @db2_exec($conn, $create);
2626

2727
if ($conn)
2828
{
29-
$result = db2_tables($conn,NULL,strtoupper('t'));
29+
$result = @db2_tables($conn,NULL,strtoupper('t'));
3030
$i = 0;
3131
while ($row = db2_fetch_both($result))
3232
{

tests/test_062_Tables_03.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $result = @db2_exec($conn, $create);
2727
if ($conn)
2828
{
2929
$schema = strtoupper('t');
30-
$result = db2_tables($conn,NULL,$schema);
30+
@$result = db2_tables($conn,NULL,$schema);
3131
$i = 0;
3232
while ($row = db2_fetch_both($result))
3333
{

tests/test_063_Tables_04.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require_once('connection.inc');
99

1010
$conn = db2_connect($db,$user,$password);
1111

12-
$result = db2_tables($conn, NULL, "SYSIBM", "", "VIEW");
12+
$result = @db2_tables($conn, NULL, "SYSIBM", "", "VIEW");
1313

1414
print_r ($result);
1515

tests/test_064_Tables_05.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $result = @db2_exec($conn, $create);
2424
$create = 'CREATE TABLE t.t4( c1 integer, c2 varchar(40))';
2525
$result = @db2_exec($conn, $create);
2626

27-
$result = db2_tables($conn, NULL, "T");
27+
$result = @db2_tables($conn, NULL, "T");
2828

2929
for ($i=0; $i<db2_num_fields($result); $i++)
3030
{

tests/test_065_FilterTableName.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $result = @db2_exec($conn, $create);
2424
$create = 'CREATE TABLE t.t4( c1 integer, c2 varchar(40))';
2525
$result = @db2_exec($conn, $create);
2626

27-
$result = db2_tables($conn, NULL, '%', "T3");
27+
$result = @db2_tables($conn, NULL, '%', "T3");
2828

2929
$columns = db2_num_fields($result);
3030

tests/test_066_TableObjects.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $conn = db2_connect($database, $user, $password);
1111

1212
$server = db2_server_info( $conn );
1313

14-
$result = db2_tables($conn, NULL, strtoupper($user), 'ANIM%');
14+
$result = @db2_tables($conn, NULL, strtoupper($user), 'ANIM%');
1515

1616
$t[0]=""; $t[1]=""; $t[2]=""; $t[3]="";
1717
while ($row = db2_fetch_object($result)) {

0 commit comments

Comments
 (0)