mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixes #5939
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7965 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
af799e179a
commit
afe9970157
1 changed files with 4 additions and 4 deletions
|
@ -454,7 +454,6 @@ class DboOracle extends DboSource {
|
|||
while($r = $this->fetchRow()) {
|
||||
$sources[] = strtolower($r[0]['name']);
|
||||
}
|
||||
parent::listSources($sources);
|
||||
return $sources;
|
||||
}
|
||||
/**
|
||||
|
@ -835,7 +834,8 @@ class DboOracle extends DboSource {
|
|||
|
||||
switch($column) {
|
||||
case 'date':
|
||||
$data = date('Y-m-d H:i:s', strtotime($data));
|
||||
$date = new DateTime($data);
|
||||
$data = $date->format('Y-m-d H:i:s');
|
||||
$data = "TO_DATE('$data', 'YYYY-MM-DD HH24:MI:SS')";
|
||||
break;
|
||||
case 'integer' :
|
||||
|
@ -975,7 +975,7 @@ class DboOracle extends DboSource {
|
|||
$ins = array_chunk($ins, 1000);
|
||||
foreach ($ins as $i) {
|
||||
$q = str_replace('{$__cakeID__$}', join(', ', $i), $query);
|
||||
$q = str_replace('= (', 'IN (', $q);
|
||||
$q = str_replace('= (', 'IN (', $q);
|
||||
$res = $this->fetchAll($q, $model->cacheQueries, $model->alias);
|
||||
$fetch = array_merge($fetch, $res);
|
||||
}
|
||||
|
@ -1019,7 +1019,7 @@ class DboOracle extends DboSource {
|
|||
$ins = array_chunk($ins, 1000);
|
||||
foreach ($ins as $i) {
|
||||
$q = str_replace('{$__cakeID__$}', '(' .join(', ', $i) .')', $query);
|
||||
$q = str_replace('= (', 'IN (', $q);
|
||||
$q = str_replace('= (', 'IN (', $q);
|
||||
$q = str_replace(' WHERE 1 = 1', '', $q);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue