From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 16:56:42 +0000 (-0500) Subject: Set type first so that it can be used when detecting defaults X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3bcb91f63c75dd42a11b597f17557f1cdf9da76e;p=horde.git Set type first so that it can be used when detecting defaults --- 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'; } /**