PHP 4.0 Bug #6762: Incorrect ARGC in function odbc_columns - php_odbc.c

From: Date: Thu, 14 Sep 2000 16:40:15 +0000
Subject: PHP 4.0 Bug #6762: Incorrect ARGC in function odbc_columns - php_odbc.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-33290@lists.php.net to get a copy of this message
From: mikebp@gallery-software.com Operating system: Win32 PHP version: 4.0.2 PHP Bug Type: ODBC related Bug description: Incorrect ARGC in function odbc_columns - php_odbc.c Hi, I just tried to use the php_odbc module under Win32 (WinNT 4.0 sp5, although that isn't an issue here) and noticed that the documentation for odbc_columns dissagrees with the actuall source code for the php function. The doco specifies: int odbc_columns (int connection_id [, string qualifier [, string owner [, string table_name [, string column_name]]]]) However, looking at the code the odbc_columns function will only work if the argument count has 1 or 5 arguments. This doesn't help with the last column not being known (as would probably be the case most of the time when people want to retreive a list of column name that are currently unknown at run-time). I noticed the doco does allow the user to specify a "%" wildcard character, so there IS a work around. Could you please look into this for me? Cheers, Mike Berry-Porter mikebp@gallery-software.com

« previous php.dev (#33290) next »