mirror of
https://github.com/php/pecl-database-ibm_db2.git
synced 2026-03-23 23:02:16 +01:00
Probably not the ideal fix; should perhaps look at changing the stub instead of the callsites.
31 lines
619 B
PHP
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
|