From 216cdde6a97e75c0524c110c3664a2fa0c65c8ee Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 10 Jun 2007 19:43:52 +0000 Subject: [PATCH] --- lib/Doctrine/DataDict/Mysql.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/DataDict/Mysql.php b/lib/Doctrine/DataDict/Mysql.php index b2f69a052..9c9204067 100644 --- a/lib/Doctrine/DataDict/Mysql.php +++ b/lib/Doctrine/DataDict/Mysql.php @@ -373,8 +373,11 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict $length = ((int) $length == 0) ? null : (int) $length; - - return array('type' => $type, 'length' => $length, 'unsigned' => $unsigned, 'fixed' => $fixed, 'values' => $values); + if ($values === null) { + return array('type' => $type, 'length' => $length, 'unsigned' => $unsigned, 'fixed' => $fixed); + } else { + return array('type' => $type, 'length' => $length, 'unsigned' => $unsigned, 'fixed' => $fixed, 'values' => $values); + } } /** * Obtain DBMS specific SQL code portion needed to set the CHARACTER SET