|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-30 13:11 UTC] sniper@php.net
[2005-08-31 15:09 UTC] andreybl at matrix dot co dot il
[2005-09-04 23:48 UTC] sniper@php.net
[2005-09-05 00:11 UTC] andreybl at matrix dot co dot il
[2005-09-05 09:02 UTC] sniper@php.net
[2009-05-04 15:10 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 16:00:01 2025 UTC |
Description: ------------ In case when ifx_query() fails it returns FALSE as result id. When ifx_getsqlca gets false as result id, it complains: <b>Warning</b>: ifx_getsqlca(): supplied resource is not a valid Informix Result resource in <b> This is actually a BUG, since when the sql-query fails, it is stll neccessary sometimes, to get the sqlca structure. E.g. to get the ISAM error. Reproduce code: --------------- sleep(20); $db->begin_transaction(); $sql = "update tb set recordingdate = '2005-01-12 11:33:57.597' where id = 138"; if (!($resid = ifx_query($sql, $db->connid))) { echo "Failed to open:\n$sql\n".ifx_error()."\n"; $db->rollback_transaction(); $sqlca = ifx_getsqlca($resind); var_dump($sqlca); die(); } else { echo "Open successfull\n"; ifx_free_result($resid); $db->commit_transaction(); } Expected result: ---------------- ifx_getsqlca should get me the sqlca structure and not an error. Actual result: -------------- ifx_getsqlca fails, the following message appears: <b>Warning</b>: ifx_getsqlca(): supplied argument is not a valid Informix Result resource in <b>