Permalink
Browse files

fixes #6240, DboOracle: fix cache sources and php version compatibility

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8154 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
1 parent 97abf84 commit 9ab6339392d8f08eed150db553d0faaf2f64dd99 gwoo committed Apr 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/model/datasources/dbo/dbo_oracle.php
@@ -454,6 +454,7 @@ function listSources() {
while($r = $this->fetchRow()) {
$sources[] = strtolower($r[0]['name']);
}
+ parent::listSources($sources);
return $sources;
}
/**
@@ -834,8 +835,7 @@ function value($data, $column = null, $safe = false) {
switch($column) {
case 'date':
- $date = new DateTime($data);
- $data = $date->format('Y-m-d H:i:s');
+ $data = date('Y-m-d H:i:s', strtotime($data));
$data = "TO_DATE('$data', 'YYYY-MM-DD HH24:MI:SS')";
break;
case 'integer' :

0 comments on commit 9ab6339

Please sign in to comment.