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

        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: