|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-08-09 07:59 UTC] alex dot trofast at ingres dot com
Description: ------------ When a query is run that returns a non-result resource statement and this is not captured within a local variable it gets garbage collected and results in the following error: Warning: ingres_query(): Error: 7 - Unable to close non- result resource statement in /path/to/code on line XYZ The query below would cause such an error. Reproduce code: --------------- ingres_query($connection,"set session read write ,isolation level read uncommitted"); Expected result: ---------------- The resource is garbage collected gracefully. Actual result: -------------- An error is produced. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 07:00:01 2025 UTC |
Actual test case: $link = ingres_connect("demodb"); ingres_autocommit($link); ini_set('ingres.array_index_start', 0); //scrollable cannot be used when lobs are in the result set ini_set('ingres.scrollable', 0); ingres_query($link,"set lockmode session where readlock=nolock"); ingres_query($link,"set session read write ,isolation level read uncommitted");