From 3bcb91f63c75dd42a11b597f17557f1cdf9da76e Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 11:56:42 -0500 Subject: [PATCH] Set type first so that it can be used when detecting defaults --- framework/Db/lib/Horde/Db/Adapter/Abstract/Column.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/Db/lib/Horde/Db/Adapter/Abstract/Column.php b/framework/Db/lib/Horde/Db/Adapter/Abstract/Column.php index 38bf97e7e..a3e13b083 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Abstract/Column.php +++ b/framework/Db/lib/Horde/Db/Adapter/Abstract/Column.php @@ -52,14 +52,15 @@ class Horde_Db_Adapter_Abstract_Column $this->_name = $name; $this->_sqlType = $sqlType; $this->_null = $null; + + $this->_type = $this->_simplifiedType($sqlType); + $this->_isText = $this->_type == 'text' || $this->_type == 'string'; + $this->_isNumber = $this->_type == 'float' || $this->_type == 'integer' || $this->_type == 'decimal'; + $this->_limit = $this->_extractLimit($sqlType); $this->_precision = $this->_extractPrecision($sqlType); $this->_scale = $this->_extractScale($sqlType); - $this->_type = $this->_simplifiedType($sqlType); $this->_default = $this->extractDefault($default); - - $this->_isText = $this->_type == 'text' || $this->_type == 'string'; - $this->_isNumber = $this->_type == 'float' || $this->_type == 'integer' || $this->_type == 'decimal'; } /** -- 2.11.0