php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #759 Confusing ora_numrows results
Submitted: 1998-09-18 11:06 UTC Modified: 1999-05-29 11:25 UTC
From: drew at elysium dot demon dot co dot uk Assigned: kara (profile)
Status: Closed Package: Oracle related
PHP Version: 3.0.3 OS: Solaris 2.6/Oracle 8.0.5
Private report: No CVE-ID: None
 [1998-09-18 11:06 UTC] drew at elysium dot demon dot co dot uk
After doing either an ora_do, or a ora_prepare then ora_exec ora_numrows seems to return the number of rows fetched not the number of rows in the total result set.  Connecting as scott/tiger and doing an ora_do($conn, "select * from cat"), ora_numrows returns a value of 1, after a fetch the return value of ora_numrows is 2 and so on.  If it is any help the perl DBI/DBD combination returns the total number of rows in the result set from its implementation of oexec ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-29 11:25 UTC] thies at cvs dot php dot net
that's the way it is, we cannot provide an api for this as oracle doesn't give us that info.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 12:01:23 2020 UTC