|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5642 OCI functions do not work with Oracle's to_date($string, format) function
Submitted: 2000-07-17 12:35 UTC Modified: 2006-07-17 08:09 UTC
From: jnguyen at scrtec dot org Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.0 Release Candidate 2 OS: Digital UNIX V5.0 (Rev. 910)
Private report: No CVE-ID: None
 [2000-07-17 12:35 UTC] jnguyen at scrtec dot org
$sql1 = "SELECT id, the_date FROM a_table WHERE the_date < to_date('01-JAN-99')";

$stmt = OCIparse($conn, $sql1);
while(OCIfetch($stmt)) { ... }

The PHP script above returns everything, including records newer than 01-JAN-99, from the table, whereas when I cut and paste the SQL statement into SQL*PLUS, the correct number of results is fetched.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-23 08:12 UTC]
Is this still happening with more recent versions of 
php4 (from CVS or snapshot from ) ??

 [2000-08-25 05:48 UTC]
php does _not_ touch the string you pass to oracle - please make sure your NLS_LANG environment is set correct in your apache process. 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 27 12:01:24 2020 UTC