From 10a6a5fc17c90160f7c8cd6da852546b24a3a6c2 Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 4 Feb 2007 22:37:48 +0000 Subject: [PATCH] --- lib/Doctrine/DataDict/Sqlite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/DataDict/Sqlite.php b/lib/Doctrine/DataDict/Sqlite.php index 658f6aa29..58e1494d7 100644 --- a/lib/Doctrine/DataDict/Sqlite.php +++ b/lib/Doctrine/DataDict/Sqlite.php @@ -111,7 +111,7 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict //($this->conn->options['fixed_float']+2).','.$this->conn->options['fixed_float'].')' : ''); case 'decimal': $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']); }