php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57648 no result for db2_columns with lowercase table name
Submitted: 2007-05-04 19:13 UTC Modified: 2007-05-21 15:17 UTC
From: gourysama at free dot fr Assigned: tessus (profile)
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.2.1 OS: Linux CentOS 5.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gourysama at free dot fr
New email:
PHP Version: OS:

 

 [2007-05-04 19:13 UTC] gourysama at free dot fr
Description:
------------
The db2_columns function does not send any description of columns with a table which name is in lower case. On window system, this function work fine. 
DB2 tables where created in lowercase name for using with CakePHP. 

We're using Lampp on Linux for our developpment.

./configure --prefix=/opt/lampp --with-apxs2=/opt/lampp/bin/apxs --with-config-file-path=/opt/lampp/etc --with-mysql=/opt/lampp --enable-inline-optimization --disable-debug --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --with-ttf --enable-magic-quotes --enable-memory-limit --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-wddx --enable-yp --with-ftp --with-gdbm=/opt/lampp --with-jpeg-dir=/opt/lampp --with-png-dir=/opt/lampp --with-freetype-dir=/opt/lampp --without-xpm --with-zlib=yes --with-zlib-dir=/opt/lampp --with-openssl=/opt/lampp --with-expat-dir=/opt/lampp --enable-xslt=/opt/lampp --with-xsl=/opt/lampp --with-dom=/opt/lampp --with-ldap=/opt/lampp --with-ncurses=/opt/lampp --with-gd --with-imap-dir=/opt/lampp --with-imap-ssl --with-imap=/opt/lampp --with-gettext=/opt/lampp --with-mssql=/opt/lampp --with-sybase=/opt/lampp --with-interbase=shared,/opt/interbase --with-mysql-sock=/opt/lampp/var/mysql/mysql.sock --with-oci8=shared --with-mcrypt=/opt/lampp --with-mhash=/opt/lampp --enable-sockets --enable-mbstring=all --with-curl=/opt/lampp --enable-mbregex --enable-zend-multibyte --enable-exif --with-bz2=/opt/lampp --with-sqlite=shared,/opt/lampp --with-libxml-dir=/opt/lampp --enable-soap --enable-pcntl --with-mysqli=/opt/lampp/bin/mysql_config --with-mime-magic --with-pgsql=shared,/opt/lampp/postgresql --with-iconv --enable-dio --with-pdo-mysql=/opt/lampp --with-pdo-pgsql=/opt/lampp/postgresql --with-pdo-sqlite --with-ming=shared,/opt/lampp --with-IBM_DB2 --enable-xdebug

 


Reproduce code:
---------------
SQL 
create table TEST."sample"
(
  "id"            INTEGER not null generated BY DEFAULT AS identity (NO CACHE, INCREMENT BY 1),
  "title"         VARCHAR(50),
  "created"       TIMESTAMP DEFAULT CURRENT TIMESTAMP,
  constraint P_USERS_U1 primary key ("id")
);


PHP
...
$stmt = db2_columns ($conn ,null , 'TEST' , 'sample' , '%' );
if ( $stmt ) 
{
  while ($rowC = db2_fetch_assoc($stmt)) 
  {
    var_dump( $rowC );
  }
}

Expected result:
----------------
Arrays of columns description 'sample' table.

Actual result:
--------------
None

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-10 11:50 UTC] helmut_tessarek at evermeet dot cx
Hi,

The problem could be reproduced and will be fixed in CVS as soon as possible.

Regards,
   Helmut
 [2007-05-21 15:17 UTC] opendev at us dot ibm dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 27 22:01:24 2020 UTC