#17015 [Opn->Bgs]: Ora_Error/Ora_ErrorCode

From: Date: Wed, 29 Jan 2003 14:20:23 +0000
Subject: #17015 [Opn->Bgs]: Ora_Error/Ora_ErrorCode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31578@lists.php.net to get a copy of this message
ID: 17015 Updated by: maxim@php.net Reported By: sparasker@hotmail.com -Status: Open +Status: Bogus Bug Type: Oracle related Operating System: HP-Unix 11.X PHP Version: 4.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Ora_do does not fail when there is no data returned, thus ora_error and/or ora_errorcode does not return any errors either. This is an expected behaviour. Previous Comments: ------------------------------------------------------------------------ [2002-05-05 10:41:56] sparasker@hotmail.com When checking for errors after Ora_Do, if the table is empty, neither of them (ora_error/ora_errorcode) return 1403 (no data found). Following is sample code: $query = "select * from test_table "; $qCursor = Ora_Do($oraConn, $query); $qError = Ora_ErrorCode($query); // $qError = Ora_Error($query); echo "Error = >".$qError."< \n"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17015&edit=1

« previous php.bugs (#31578) next »