Commit 7df036a6 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #67 from srosato/fix-sqlite-double-precision

Fix for DBAL-158, double precision not working with sqlite.
parents 5084e6bf 63b1213f
...@@ -455,35 +455,36 @@ class SqlitePlatform extends AbstractPlatform ...@@ -455,35 +455,36 @@ class SqlitePlatform extends AbstractPlatform
protected function initializeDoctrineTypeMappings() protected function initializeDoctrineTypeMappings()
{ {
$this->doctrineTypeMapping = array( $this->doctrineTypeMapping = array(
'boolean' => 'boolean', 'boolean' => 'boolean',
'tinyint' => 'boolean', 'tinyint' => 'boolean',
'smallint' => 'smallint', 'smallint' => 'smallint',
'mediumint' => 'integer', 'mediumint' => 'integer',
'int' => 'integer', 'int' => 'integer',
'integer' => 'integer', 'integer' => 'integer',
'serial' => 'integer', 'serial' => 'integer',
'bigint' => 'bigint', 'bigint' => 'bigint',
'bigserial' => 'bigint', 'bigserial' => 'bigint',
'clob' => 'text', 'clob' => 'text',
'tinytext' => 'text', 'tinytext' => 'text',
'mediumtext' => 'text', 'mediumtext' => 'text',
'longtext' => 'text', 'longtext' => 'text',
'text' => 'text', 'text' => 'text',
'varchar' => 'string', 'varchar' => 'string',
'varchar2' => 'string', 'varchar2' => 'string',
'nvarchar' => 'string', 'nvarchar' => 'string',
'image' => 'string', 'image' => 'string',
'ntext' => 'string', 'ntext' => 'string',
'char' => 'string', 'char' => 'string',
'date' => 'date', 'date' => 'date',
'datetime' => 'datetime', 'datetime' => 'datetime',
'timestamp' => 'datetime', 'timestamp' => 'datetime',
'time' => 'time', 'time' => 'time',
'float' => 'float', 'float' => 'float',
'double' => 'float', 'double' => 'float',
'real' => 'float', 'double precision' => 'float',
'decimal' => 'decimal', 'real' => 'float',
'numeric' => 'decimal', 'decimal' => 'decimal',
'numeric' => 'decimal',
); );
} }
......
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