php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16401 odbc_num_rows() returns last number of rows, no matter what result id is given
Submitted: 2002-04-02 22:29 UTC Modified: 2002-06-24 16:50 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: root at crackerz dot org Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.1.2 OS: Windows 2000 Professional
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: root at crackerz dot org
New email:
PHP Version: OS:

 

 [2002-04-02 22:29 UTC] root at crackerz dot org
I access a mysql database using the odbc functions

(i'm not using the mysql functions because it has to migrate
to another database system later)

first execute 2 select queryies:

$result1 = odbc_exec($connection, $query1);
$result2 = odbc_exec($connection, $query2);

after this, even when the number of rows is not equal
odbc_num_rows(result1) wil return the number of result2

The bug can be in : mysql, odbc-mysql driver or the php odbc function...
i don't have a clue ;)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-24 16:50 UTC] kalowsky@php.net
Unable to reproduce this locally.  Please note that odbc_num_rows on a SELECT will more than likely ALWAYS return a value of -1.  This is the way the ODBC standard specifies this function work.  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 21:01:27 2024 UTC