|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-03 11:04 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 15:00:01 2025 UTC |
Description: ------------ When issuing an invalid DDL statement, e.g. "DELETE FROM nosuchtable" the driver does not detect an error. Reproduce code: --------------- <?php echo "Connecting..."; $conn = ingres_connect("demodb"); echo "done\n"; echo "Sending query..."; $nosuchtable = ingres_query($conn, "delete from aunt_betty"); echo "done\n"; echo "testing for error\n"; if (ingres_errno()) { trigger_error ("Error:" . ingres_errno() . " " . ingres_error(), E_USER_ERROR); } Expected result: ---------------- Connecting...done Sending query...done testing for error Fatal error: Error:2117 Table 'aunt_betty' does not exist or is not owned by you. Actual result: -------------- Connecting...done Sending query...done testing for error Warning: Unknown: ii_success : Server or API error - no error message available, status 7 in Unknown on line 0 Warning: Unknown: _close_statement : failed in Unknown on line 0 [Thu Jun 3 10:04:33 2010] Script: 'notable.php' /home/grant/src/svn/php/5.2.13/ext/date/php_date.c(566) : Freeing 0x0A1822FC (32 bytes), script=notable.php /home/grant/src/svn/php/5.2.13/Zend/zend_alloc.c(2391) : Actual location (location was relayed) [Thu Jun 3 10:04:33 2010] Script: 'notable.php' /home/grant/src/svn/php/5.2.13/ext/date/php_date.c(565) : Freeing 0x0A1864B8 (44 bytes), script=notable.php [Thu Jun 3 10:04:33 2010] Script: 'notable.php' /home/grant/src/svn/php/5.2.13/Zend/zend_hash.c(247) : Freeing 0x0A187208 (49 bytes), script=notable.php === Total 3 memory leaks detected ===