Doctrine 1
  1. Doctrine 1
  2. DC-583

MSSQL Server: No accounting for max varchar size when creating columns.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.3
    • Component/s: Migrations
    • Labels:
      None
    • Environment:
      PHP 5.3
      MSSQL Server 2008

      Description

      The Doctrine_Connection_Mysql and Doctrine_Datadict_Mysql classes utilise a connection property max_varchar_size so if the field length of a string column is specified and exceeds 255 chars a 'text' column type is used instead of a 'varchar' one.

      This logic is missing for MSSQL; Doctrine will attempt to create varchar columns even if greater than the max size (8000 chars).

      I've attached a patch for MSSQL which mirrors the MySQL functionality, would you consider including it please?

      Thanks!

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Craig Marvelley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: