php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32454 ibase_affected_rows always returns 0
Submitted: 2005-03-25 14:44 UTC Modified: 2005-03-31 17:06 UTC
From: m dot muncke at computer1020 dot at Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.3 OS: Suse 9
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: m dot muncke at computer1020 dot at
New email:
PHP Version: OS:

 

 [2005-03-25 14:44 UTC] m dot muncke at computer1020 dot at
Description:
------------
ibase_affected_rows() always returns 0 even if the select count(*) does not.
I always recieve 0 rows
IBConsole : select count(*) from Table ;
-> returns 12 rows


Reproduce code:
---------------
$db = ibase_pconnect('localhost:/data/database/foo.fdb','SYSDBA','masterkey');

		$query = "select * from Table";
		$ret = ibase_query ($query);
		$zu = ibase_affected_rows ( $db) ;
		if ($zu == 0 )
				echo ("query returns 0 rows");
	 	else
	 			echo ("query returns at least 1 row ");


Expected result:
----------------
Expected result :

ibase_affected_rows should return number "12" as a select in isql or IBConsole does return 12 rows;

Actual result:
--------------
Actual result is always 0



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-25 16:07 UTC] abies@php.net
ibase_affected_rows() returns the number of rows that were modified by the previous INSERT, UPDATE or DELETE. It does *not* return the number of rows available for fetching from a SELECT query.
 [2005-03-25 18:10 UTC] m dot muncke at computer1020 dot at
ok, this was not documented.

Thank you for fast reply.
 [2005-03-26 18:01 UTC] derick@php.net
Marking as doc problem then.
 [2005-03-31 17:06 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 10:01:33 2025 UTC