From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 19:32:16 +0000 (-0500) Subject: Scale can influence the type, so it needs to be set first. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=03e6942ef944e4adf9b322e0db1da5baf2c5c9de;p=horde.git Scale can influence the type, so it needs to be set first. --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Base/Column.php b/framework/Db/lib/Horde/Db/Adapter/Base/Column.php index 5d0ce69bd..433e30830 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Base/Column.php +++ b/framework/Db/lib/Horde/Db/Adapter/Base/Column.php @@ -53,13 +53,14 @@ class Horde_Db_Adapter_Base_Column $this->_sqlType = $sqlType; $this->_null = $null; + $this->_limit = $this->_extractLimit($sqlType); + $this->_precision = $this->_extractPrecision($sqlType); + $this->_scale = $this->_extractScale($sqlType); + $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->_default = $this->extractDefault($default); }