Bug #16401: odbc_num_rows() returns last number of rows, no matter what result id is given
| From: | root at crackerz dot org | Date: | Wed, 03 Apr 2002 03:29:07 +0000 |
| Subject: | Bug #16401: odbc_num_rows() returns last number of rows, no matter what result id is given | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3872@lists.php.net to get a copy of this message | ||
From: root@crackerz.org
Operating system: Windows 2000 Professional
PHP version: 4.1.2
PHP Bug Type: ODBC related
Bug description: odbc_num_rows() returns last number of rows, no matter what result id is given
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 ;)
--
Edit bug report at http://bugs.php.net/?id=16401&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16401&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16401&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16401&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16401&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16401&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16401&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16401&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16401&r=submittedtwice