Doctrine 1
  1. Doctrine 1
  2. DC-844

DataDict for MySQL excludes the possibility to have an actual floating point column

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Not environment dependent

      Description

      Extracted from Doctrine/DataDict/Mysql.php:

      Mysql.php
                  case 'float':
                      $length = !empty($field['length']) ? $field['length'] : 18;
                      $scale = !empty($field['scale']) ? $field['scale'] : $this->conn->getAttribute(Doctrine_Core::ATTR_DECIMAL_PLACES);
                      return 'FLOAT('.$length.', '.$scale.')';
                  case 'double':
                      $length = !empty($field['length']) ? $field['length'] : 18;
                      $scale = !empty($field['scale']) ? $field['scale'] : $this->conn->getAttribute(Doctrine_Core::ATTR_DECIMAL_PLACES);
      

      If the user does not specify length and decimal places, MySQL creates a floating point number. However Doctrine behavior forces FLOATs and DOUBLEs to be fixed-width.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Roberto González
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: