Files
archived-pecl-database-ibm-db2/tests/test_192_ColumnsTable_03.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

31 lines
619 B
PHP

--TEST--
IBM-DB2: db2_columns() - 3 - table
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require_once('connection.inc');
$conn = db2_connect($db,$username,$password);
if ($conn) {
$result = @db2_columns($conn,NULL,strtoupper($username),"EMP_RESUME");
$i = 0;
while ($row = db2_fetch_both($result)) {
if ($row['COLUMN_NAME'] != 'EMP_ROWID' && $i < 3) {
printf ("%s,%s,%s,%s\n", $row[1],
$row[2], $row[3], $row[17]);
}
$i++;
}
} else {
echo 'no connection: ' . db2_conn_errormsg();
}
?>
--EXPECTF--
%s,EMP_RESUME,EMPNO,NO
%s,EMP_RESUME,RESUME_FORMAT,NO
%s,EMP_RESUME,RESUME,YES