Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.0-BETA3
-
Fix Version/s: 1.2.0
-
Component/s: Import/Export
-
Labels:None
Description
Mysql Schema Manager does not correctly detect Decimal. Lost decimal scale!
bug in file Doctrine/DataDict/Mysql.php
on line 263
if (isset($field['length'])) {
$length = $field['length'];
$decimal = '';
} else {
$length = strtok('(), ');
$decimal = strtok('(), ') ? strtok('(), '):null; // <--- here strtok call 2 times! (line 263)
}
must be like that
if (isset($field['length'])) {
$length = $field['length'];
$decimal = '';
} else {
$length = strtok('(), ');
$decimal = strtok('(), ');
if ( ! $decimal ) { // or false === $decimal
$decimal = null;
}
}
Please fix it ![]()
Code formating fix