From 03e6942ef944e4adf9b322e0db1da5baf2c5c9de Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 13 Dec 2009 14:32:16 -0500 Subject: [PATCH] Scale can influence the type, so it needs to be set first. --- framework/Db/lib/Horde/Db/Adapter/Base/Column.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.11.0