php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8873 calling odbc_fetch_row with a row number under DB2 does not work
Submitted: 2001-01-23 22:02 UTC Modified: 2001-01-23 22:29 UTC
From: stuarth at generalsearch dot net Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.4pl1 OS: Redhat Linux 7.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stuarth at generalsearch dot net
New email:
PHP Version: OS:

 

 [2001-01-23 22:02 UTC] stuarth at generalsearch dot net
Calling odbc_fetch_row() with a row number does not seem to work under DB2 UDB EEE 7.1.

"$RowData = odbc_fetch_row($result);" will return data into $RowData

"$RowData = odbc_fetch_row($result, 1);" returns false into $RowData, as if an error had occured

(I know there is data in the table because I can run the same select query in DB2's command center and get results.)

If the driver for DB2 doesn't support getting data by rows, then the function should just ignore the 2nd variable.  Instead, it looks like it's attempting to use it and it's not working correctly.  Am I doing something wrong here, or is this a bug?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-23 22:29 UTC] stuarth at generalsearch dot net
Forget it.  It was a problem with my class, not the function.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 14:01:35 2025 UTC