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:
phpnut 2006-11-30 18:54:22 +00:00
parent 4abc9e94f8
commit 32d3349eb2
2 changed files with 5 additions and 10 deletions

View file

@ -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);

View file

@ -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']
);
} }
} }