php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17015 Ora_Error/Ora_ErrorCode
Submitted: 2002-05-05 10:41 UTC Modified: 2003-01-29 08:20 UTC
From: sparasker at hotmail dot com Assigned:
Status: Not a bug Package: Oracle related
PHP Version: 4.1.2 OS: HP-Unix 11.X
Private report: No CVE-ID: None
 [2002-05-05 10:41 UTC] sparasker at hotmail dot 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";

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-29 08:20 UTC] maxim@php.net
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. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 00:01:31 2024 UTC