Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.0-RC1-RC3
-
Component/s: None
-
Labels:None
Description
The former supported column type "float" is not defined in Doctrine\DBAL\Types\Type.
I noticed that floats are mapped like numerics/decimals within mysq right nowl:
protected function _getPortableTableColumnDefinition($tableColumn) { ... // Map db type to Doctrine mapping type switch ($dbType) { ... case 'float': case 'double': case 'real': case 'numeric': $type = 'decimal'; break;
I suggest to map them to a "true" float and double as available in mysql, since they use less storage space compared to numerics with fixed decimals in certain cirtumstances (-> performance issue). http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
Activity
Christian Ehmig
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
The former supported column type "float" is not defined in Doctrine\DBAL\Types\Type. I noticed that floats should be mapped like numerics/decimals within mysql: {code} protected function _getPortableTableColumnDefinition($tableColumn) { ... // Map db type to Doctrine mapping type switch ($dbType) { ... case 'float': case 'double': case 'real': case 'numeric': $type = 'decimal'; break; {code} I suggest to map them to a "true" float and double as available in mysql, since they use less storage space compared to numerics with fixed decimals in certain cirtumstances (-> performance issue). http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html |
The former supported column type "float" is not defined in Doctrine\DBAL\Types\Type. I noticed that floats are mapped like numerics/decimals within mysq right nowl: {code} protected function _getPortableTableColumnDefinition($tableColumn) { ... // Map db type to Doctrine mapping type switch ($dbType) { ... case 'float': case 'double': case 'real': case 'numeric': $type = 'decimal'; break; {code} I suggest to map them to a "true" float and double as available in mysql, since they use less storage space compared to numerics with fixed decimals in certain cirtumstances (-> performance issue). http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html |
Guilherme Blanco
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Roman S. Borschel
made changes -
| Component/s | ORM [ 10012 ] | |
| Component/s | DBAL [ 10011 ] |
Benjamin Eberlei
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Roman S. Borschel
made changes -
| Project | Doctrine 2 - ORM [ 10032 ] | Doctrine DBAL [ 10040 ] |
| Key | DDC-67 |
|
| Issue Type | Bug [ 1 ] | New Feature [ 2 ] |
| Affects Version/s | 2.0-ALPHA2 [ 10028 ] | |
| Component/s | ORM [ 10012 ] |
Roman S. Borschel
made changes -
| Assignee | Roman S. Borschel [ romanb ] | Benjamin Eberlei [ beberlei ] |
Benjamin Eberlei
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Fix Version/s | 2.0.0-RC1 [ 10094 ] | |
| Resolution | Fixed [ 1 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 10250 ] | jira-feedback2 [ 17620 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 17620 ] | jira-feedback3 [ 19975 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-41, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
This issue was already fixed before. Check out line 192 in MySqlSchemaManager.php