mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
Adding fix for Ticket #1568.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4036 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4abc9e94f8
commit
32d3349eb2
2 changed files with 5 additions and 10 deletions
|
@ -219,10 +219,8 @@ class DboAdodb extends DboSource {
|
||||||
$cols = $this->_adodb->MetaColumns($this->fullTableName($model, false));
|
$cols = $this->_adodb->MetaColumns($this->fullTableName($model, false));
|
||||||
|
|
||||||
foreach($cols as $column) {
|
foreach($cols as $column) {
|
||||||
$fields[] = array(
|
$fields[] = array('name' => $column->name,
|
||||||
'name' => $column->name,
|
'type' => $this->column($column->type));
|
||||||
'type' => $column->type
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->__cacheDescription($this->fullTableName($model, false), $fields);
|
$this->__cacheDescription($this->fullTableName($model, false), $fields);
|
||||||
|
|
|
@ -177,12 +177,9 @@ class DboMysql extends DboSource {
|
||||||
$column[0] = $column[$colKey[0]];
|
$column[0] = $column[$colKey[0]];
|
||||||
}
|
}
|
||||||
if (isset($column[0])) {
|
if (isset($column[0])) {
|
||||||
$fields[] = array(
|
$fields[] = array('name' => $column[0]['Field'],
|
||||||
'name' => $column[0]['Field'],
|
|
||||||
'type' => $this->column($column[0]['Type']),
|
'type' => $this->column($column[0]['Type']),
|
||||||
'null' => $column[0]['Null'],
|
'null' => $column[0]['Null']);
|
||||||
'default' => $column[0]['Default']
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue