Jira issue originally created by user gshockoman:
I have a column in an entity, defined as "float" type.
When I run my phpunit tests (which are defined to use sqlite, whereas my production and development environment uses mysql), I get the following exception:
Doctrine\DBAL\DBALException: Unknown database type double precision requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it
Looking at AbstractPlatform.php, line 1972, function "getFloatDeclarationSQL" returns 'DOUBLE PRECISION'.
Where other platforms have in their "initializeDoctrineTypeMappings" method a mapping such as:
'double precision' => 'float',
, SqlitePlatform.php doesn't have such a mapping.
Comment created by ratius:
I have encountered the same issue while using sqlite. I have made a simple fix in the platform class, as seen in the patch I provided which hopefully fixes the issue.
Comment created by @beberlei:
Issue was closed with resolution "Fixed"
Imported 1 attachments from Jira into https://gist.github.com/82103b75a13f98708279