mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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));
|
||||
|
||||
foreach($cols as $column) {
|
||||
$fields[] = array(
|
||||
'name' => $column->name,
|
||||
'type' => $column->type
|
||||
);
|
||||
$fields[] = array('name' => $column->name,
|
||||
'type' => $this->column($column->type));
|
||||
}
|
||||
|
||||
$this->__cacheDescription($this->fullTableName($model, false), $fields);
|
||||
|
|
|
@ -177,12 +177,9 @@ class DboMysql extends DboSource {
|
|||
$column[0] = $column[$colKey[0]];
|
||||
}
|
||||
if (isset($column[0])) {
|
||||
$fields[] = array(
|
||||
'name' => $column[0]['Field'],
|
||||
'type' => $this->column($column[0]['Type']),
|
||||
'null' => $column[0]['Null'],
|
||||
'default' => $column[0]['Default']
|
||||
);
|
||||
$fields[] = array('name' => $column[0]['Field'],
|
||||
'type' => $this->column($column[0]['Type']),
|
||||
'null' => $column[0]['Null']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue