Uploaded image for project: 'Doctrine DBAL'
  1. Doctrine DBAL
  2. DBAL-243

setCharset raises an error when using pdo_sqlite

    Details

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

      Description

      When I attempt to use setCharset("utf8") with pdo_sqlite, this fails.

      I know that pdo_sqlite doesn't support SET NAMES utf8, however, this should be caught by the driver (like: throwing a NotSupportedException) or simply ignore setCharset (mainly because if you allow the user to choose their backend, developers don't need to introduce special cases for driver handling).

        Activity

        felicitus Timo A. Hummel created issue -
        beberlei Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 10184 ]
        Resolution Fixed [ 1 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira [ 13556 ] jira-feedback2 [ 17807 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17807 ] jira-feedback3 [ 20162 ]

          People

          • Assignee:
            beberlei Benjamin Eberlei
            Reporter:
            felicitus Timo A. Hummel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: