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: 2022-02-12 02:37 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
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: drew at elysium dot demon dot co dot uk
New email:
PHP Version: OS:

Further comment on this bug is unnecessary.

 

 [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

Pull Requests

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.
 [2022-02-12 02:37 UTC] requinix@php.net
-Block user comment: No +Block user comment: Yes
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC