Fixing column lengths in DboMssql::describe(), fixes #3769

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6263 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-12-26 22:44:41 +00:00
parent 63bb042c9e
commit e48e6a5e83

View file

@ -214,7 +214,7 @@ class DboMssql extends DboSource {
'type' => $this->column($column[0]['Type']),
'null' => (strtoupper($column[0]['Null']) == 'YES'),
'default' => $column[0]['Default'],
'length' => $this->length($column[0]['Type']),
'length' => intval($column[0]['Length']),
);
}
$this->__cacheDescription($this->fullTableName($model, false), $fields);