Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-457

[GH-280] Use int values instead of strings for PostgreSQL booleans

    Details

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

      Description

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

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

      Message:

        1. The Problem:
          The current implementation for PostgreSQL uses strings 'true' and 'false' which are not working with PDO::ATTR_EMULATE_PREPARES.
        1. Solution:
          Use ints like in the default platform implementation.
        1. Comments
      • Tested only on my local php 5.4.9
      • Fixed NamedParametersTest to use int columns instead of strings (does not work with PDO::ATTR_EMULATE_PREPARES when compare string column IN array of ints)
      • Fixed DbalFunctionalTestCase sql parameters dumping (found while fixing NamedParametersTest)
      • Added support for driver options configuration via phpunit config globals

        Activity

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

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-280] was closed https://github.com/doctrine/dbal/pull/280
        Show
        Marco Pivetta added a comment - Solved at https://github.com/doctrine/dbal/commit/55128a6549b777ec91d7808989df236dbd508111
        Marco Pivetta made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.4 [ 10320 ]

        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-457, 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: