This commit is contained in:
parent
c38137d551
commit
10a6a5fc17
@ -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']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user