mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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
This commit is contained in:
parent
97abf84770
commit
9ab6339392
1 changed files with 2 additions and 2 deletions
|
@ -454,6 +454,7 @@ class DboOracle extends DboSource {
|
||||||
while($r = $this->fetchRow()) {
|
while($r = $this->fetchRow()) {
|
||||||
$sources[] = strtolower($r[0]['name']);
|
$sources[] = strtolower($r[0]['name']);
|
||||||
}
|
}
|
||||||
|
parent::listSources($sources);
|
||||||
return $sources;
|
return $sources;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -834,8 +835,7 @@ class DboOracle extends DboSource {
|
||||||
|
|
||||||
switch($column) {
|
switch($column) {
|
||||||
case 'date':
|
case 'date':
|
||||||
$date = new DateTime($data);
|
$data = date('Y-m-d H:i:s', strtotime($data));
|
||||||
$data = $date->format('Y-m-d H:i:s');
|
|
||||||
$data = "TO_DATE('$data', 'YYYY-MM-DD HH24:MI:SS')";
|
$data = "TO_DATE('$data', 'YYYY-MM-DD HH24:MI:SS')";
|
||||||
break;
|
break;
|
||||||
case 'integer' :
|
case 'integer' :
|
||||||
|
|
Loading…
Add table
Reference in a new issue