php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59547 ingres_num_rows=0 if not use ingres_query with "params and types"
Submitted: 2010-12-22 03:15 UTC Modified: 2017-10-24 08:41 UTC
From: francesco dot daguanno at bucap dot it Assigned:
Status: Suspended Package: ingres (PECL)
PHP Version: 5.3.2 OS: Windows 2003
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: francesco dot daguanno at bucap dot it
New email:
PHP Version: OS:

 

 [2010-12-22 03:15 UTC] francesco dot daguanno at bucap dot it
Description:
------------
ingres_num_rows = 0 if use ingres_query without parameter


System information.
APACHE HTTP SERVER: 2.2.17
PHP Version: 5.3.4
INGRES version rel: II 9.2.0 (int.w32/143)
PHP EXT: php_ingres.dll for PHP-5.3.2/Ingres-9.2.0-b143

Reproduce code:
---------------
<?
//ERROR: ingres_num_rows = 0
$dbLink = ingres_connect($dbDatabase, $dbUsername, $dbPassword) or die("error ingres_connect");
$dbQuery = " UPDATE myTable SET myDate = DATE('now') WHERE myId = 1 ";
$result = ingres_query($dbLink, $dbQuery) or die("error ingres_query");
echo ingres_num_rows($result)."<br>"; // return 0

//ERROR: ingres_num_rows = 1
$dbLink = ingres_connect($dbDatabase, $dbUsername, $dbPassword) or die("error ingres_connect");
$dbQuery = " UPDATE myTable SET myDate = ? WHERE myId = ? ";
$dbParams[] = date("d.m.Y H:i:s");
$dbParams[] = 1;
$dbTypes = "di";
$result = ingres_query($dbLink, $dbQuery, $dbParams, $dbTypes) or die("error ingres_query");
echo ingres_num_rows($result)."<br>"; // return 1
?>

Expected result:
----------------
ingres_num_rows = 1

Actual result:
--------------
ingres_num_rows = 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 08:41 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 08:41 UTC] kalle@php.net
The ingres package has not had any activity for 4 years, so its safe to say that its no longer in active development, if activity picks backup then the maintainer can re-open this report
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC