|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-10-24 08:41 UTC] kalle@php.net
-Status: Open
+Status: Suspended
[2017-10-24 08:41 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
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