Commit 10a6a5fc authored by zYne's avatar zYne

--no commit message

--no commit message
parent c38137d5
...@@ -111,7 +111,7 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict ...@@ -111,7 +111,7 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict
//($this->conn->options['fixed_float']+2).','.$this->conn->options['fixed_float'].')' : ''); //($this->conn->options['fixed_float']+2).','.$this->conn->options['fixed_float'].')' : '');
case 'decimal': case 'decimal':
$length = !empty($field['length']) ? $field['length'] : 18; $length = !empty($field['length']) ? $field['length'] : 18;
return 'DECIMAL('.$length.','.$this->conn->options['decimal_places'].')'; return 'DECIMAL('.$length.','.$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES).')';
} }
throw new Doctrine_DataDict_Exception('Unknown datatype ' . $field['type']); throw new Doctrine_DataDict_Exception('Unknown datatype ' . $field['type']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment