From c25911712b7054ea00cf89dcb045c7c013c92907 Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 10 Feb 2007 11:01:04 +0000 Subject: [PATCH] --- lib/Doctrine/Import/Mssql.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Import/Mssql.php b/lib/Doctrine/Import/Mssql.php index c2206d8c1..55bd387fc 100644 --- a/lib/Doctrine/Import/Mssql.php +++ b/lib/Doctrine/Import/Mssql.php @@ -67,12 +67,18 @@ class Doctrine_Import_Mssql extends Doctrine_Import } if ($type == 'varchar') { - $type .= '('.$val['length'].')'; + $type .= '(' . $val['length'] . ')'; } + $decl = $this->conn->dataDict->getPortableDeclaration($val); + $description = array( 'name' => $val['column_name'], 'type' => $type, + 'ptype' => $decl['type'], + 'length' => $decl['length'], + 'fixed' => $decl['fixed'], + 'unsigned' => $decl['unsigned'], 'notnull' => (bool) ($val['is_nullable'] === 'NO'), 'default' => $val['column_def'], 'primary' => (strtolower($identity) == 'identity'),