php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6762 Incorrect ARGC in function odbc_columns - php_odbc.c
Submitted: 2000-09-14 12:40 UTC Modified: 2001-04-01 19:45 UTC
From: mikebp at gallery-software dot com Assigned: kalowsky (profile)
Status: Closed Package: ODBC related
PHP Version: 4.0.2 OS: Win32
Private report: No CVE-ID: None
 [2000-09-14 12:40 UTC] mikebp at gallery-software dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-26 17:10 UTC] kalowsky@php.net
yeah, i'll check this one out tooo.....
 [2001-04-01 19:45 UTC] kalowsky@php.net
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... 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 16:01:29 2024 UTC