php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #949 informix function bug! => ifx_affected_rows
Submitted: 1998-11-24 01:43 UTC Modified: 1999-06-20 20:11 UTC
From: youngtk at www dot dm dot co dot kr Assigned:
Status: Closed Package: Other
PHP Version: 3.0.5 OS: AIX 4.2.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: youngtk at www dot dm dot co dot kr
New email:
PHP Version: OS:

 

 [1998-11-24 01:43 UTC] youngtk at www dot dm dot co dot kr
Here is my source ...

<?php

$conn = ifx_connect("stores7@test","informix","test");
$query = "SELECT * FROM customers";

$rid = ifx_query($query,$conn);
$rowcount = ifx_affected_rows($rid);

echo $rowcount;

?>

The value of $rowcount is 1!  Why? The real row count is 150!

My Configuration is ...

configure  --prefix=/home --with-apache=/home/tmp/apache_1.3.3 --with-gd=no --with-mysql=/home/mysql --with-informix=/usr/inf --with-imap=/home --with-config-file-path=/home/etc --with-exec-dir=/home/libexec --enable-track-vars=yes --enable-memory-limit=yes

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 20:11 UTC] jim at cvs dot php dot net
The results of this function on SELECT queries
isn't guaranteed, as explained in the documentation.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 09 13:03:40 2023 UTC