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'] . '\' ';
      }
      

        Issue Links

          Activity

          Asmir Mustafic created issue -
          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
          Benjamin Eberlei made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.5 [ 10523 ]
          Resolution Fixed [ 1 ]
          Steve Müller made changes -
          Link This issue is referenced by DBAL-1183 [ DBAL-1183 ]

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: