|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-14 11:15 UTC] grant dot croker at ingres dot com
[2009-05-16 04:13 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 17:00:02 2025 UTC |
Description: ------------ I was trying out ingres and tried to insert a record which failed because of missing ID in query. This resulted in a cascade of problems resulting in the session not being freed. Reproduce code: --------------- error_reporting(E_ALL); ini_set("ingres.scrollable", FALSE); ini_set("ingres.utf8", TRUE); ini_set("ingres.describe", TRUE); $link = ingres_connect("demodb", "ingres", "demo") or die("Could not connect"); echo "Connected successfully"; $result = ingres_query($link, "INSERT INTO user_profile (up_last, up_first, up_email, up_airport)VALUES(?,?,?,?)",array('Snoeijs','Erik','erik@example.org','FLU')); print ingres_error(); ingres_close($link); Expected result: ---------------- Connected successfully No value specified for mandatory column 'up_id'. Actual result: -------------- Warning: ingres_query() [function.ingres-query]: An error occurred when preparing a query for DESCRIBE INPUT in /var/www/index.php on line 141 Warning: ingres_query() [function.ingres-query]: An error occurred whilst trying to describe the query in /var/www/index.php on line 141 Notice: ingres_close() [function.ingres-close]: _rollback_transaction : IIAPI_ST_FAILURE: 13172740 - The requested operation cannot be performed with active queries. in /var/www/index.php on line 145 Notice: ingres_close() [function.ingres-close]: _close_ii_link : 13172739 - The requested operation cannot be performed with active transactions. in /var/www/index.php on line 145 Warning: ingres_close() [function.ingres-close]: _close_ii_link : Unable to close statement in /var/www/index.php on line 145