function get_db_type() { $precision = !empty($this->precision) ? $this->precision : 6; if (empty($this->len)) { return parent::get_db_type(); } return " " . sprintf($GLOBALS['db']->getColumnType("decimal_tpl"), $this->len, $precision); }
function get_db_type() { $precision = !empty($this->precision) ? $this->precision : 6; if (empty($this->len)) { return parent::get_db_type(); } return " " . sprintf($GLOBALS['db']->getColumnType("decimal_tpl"), $this->len, $precision); }