From e48e6a5e83382b63a39106ed530e70edce4a49b6 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 26 Dec 2007 22:44:41 +0000 Subject: [PATCH] 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 --- cake/libs/model/datasources/dbo/dbo_mssql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo/dbo_mssql.php b/cake/libs/model/datasources/dbo/dbo_mssql.php index a345f51c3..0bb1f515b 100644 --- a/cake/libs/model/datasources/dbo/dbo_mssql.php +++ b/cake/libs/model/datasources/dbo/dbo_mssql.php @@ -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);