Files
archived-pecl-database-ibm-db2/tests/test_023_ColumnPrivileges.phpt
Calvin Buckley 35356b67db Handle deprecation of null to ?string in tests
Probably not the ideal fix; should perhaps look at changing the stub
instead of the callsites.
2022-06-22 13:38:45 -03:00

32 lines
540 B
PHP

--TEST--
IBM-DB2: db2_column_privileges -- tests the db2_column_privileges functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require_once('connection.inc');
$conn = db2_connect($database, $user, $password);
if ($conn != 0)
{
@$stmt = db2_column_privileges($conn, NULL, NULL, 'ANIMALS');
$row = db2_fetch_array($stmt);
print $row[2] . "\n";
print $row[3] . "\n";
print $row[7];
db2_close($conn);
}
else
{
echo db2_conn_errormsg();
printf("Connection failed\n\n");
}
?>
--EXPECTF--
ANIMALS
BREED
YES