PHP 4.0 Bug #6762 Updated: Incorrect ARGC in function odbc_columns - php_odbc.c
| From: | kalowsky@php.net | Date: | Sun, 01 Apr 2001 23:45:11 +0000 |
| Subject: | PHP 4.0 Bug #6762 Updated: Incorrect ARGC in function odbc_columns - php_odbc.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50520@lists.php.net to get a copy of this message | ||
ID: 6762
Updated by: kalowsky
Reported By: mikebp@gallery-software.com
Old-Status: Assigned
Status: Closed
Bug Type: ODBC related
Assigned To: kalowsky
Comments:
this should be fixed post 4.0.3 it's even commented as so
in the documentation for it... mind you, you can't find it
on the general odbc function list though...
Previous Comments:
---------------------------------------------------------------------------
[2001-03-26 17:10:10] kalowsky@php.net
yeah, i'll check this one out tooo.....
---------------------------------------------------------------------------
[2000-09-14 12:40:15] mikebp@gallery-software.com
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6762&edit=2