Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-567

PDOPgSql should respect connection charset option

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Drivers
    • Security Level: All
    • Labels:
    • Environment:
      postgres 9

      Description

      Add this piece of code to _constructPdoDsn method to respect charset option

       
      if (isset($params['charset'])) {
           $dsn .= 'options=\'--client_encoding' . $params['charset'] . '\' ';
      }
      

        Activity

        Hide
        Asmir Mustafic added a comment -
        Show
        Asmir Mustafic added a comment - This feature is documented here: http://www.php.net/manual/en/function.pg-connect.php

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Asmir Mustafic
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: