Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-342

[GH-198] Change default MySQL table collation to utf8_unicode_ci

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of VladanStef:

      Url: https://github.com/doctrine/dbal/pull/198

      Message:

      I think default table collation should be changed to `utf8_unicode_ci`, as it handles properly a much wider array of characters (Cyrillic, for example) at a generally negligible cost of performance.

      `utf8_general_ci` simply does not work properly with too many languages and should be avoided as a default.

        Activity

        Benjamin Eberlei created issue -
        Hide
        Benjamin Eberlei added a comment -

        A related Github Pull-Request [GH-198] was closed
        https://github.com/doctrine/dbal/pull/198

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-198] was closed https://github.com/doctrine/dbal/pull/198
        Hide
        Benjamin Eberlei added a comment -

        Merged into 2.3

        Show
        Benjamin Eberlei added a comment - Merged into 2.3
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 10184 ]
        Resolution Fixed [ 1 ]
        Hide
        William Knak added a comment -

        What about leaving default collate empty? So it will inherit database default collation / charset. I've just created a ticket suggesting that #DDC-2139 . Because we're experiencing trouble using Symfony2 commands to create database, than create schema/tables/fields, always use "utf8_unicode_ci" instead of our database default collate.

        Show
        William Knak added a comment - What about leaving default collate empty? So it will inherit database default collation / charset. I've just created a ticket suggesting that # DDC-2139 . Because we're experiencing trouble using Symfony2 commands to create database, than create schema/tables/fields, always use "utf8_unicode_ci" instead of our database default collate.
        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-198] was closed:
        https://github.com/doctrine/common/pull/198

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-198] was closed: https://github.com/doctrine/common/pull/198

        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-342, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: