Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3, 2.4.2
    • Fix Version/s: 2.3.3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Column type json_array can be set to nullable, but if there's null in the database, it is returned as an empty array to PHP.

      Null should be returned instead, as that's how the other types behave too.

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          This was fixed in 2.3.3

          Show
          Benjamin Eberlei added a comment - This was fixed in 2.3.3
          Hide
          Joseph Wynn added a comment -

          I'm seeing this behaviour again in v2.5.0-BETA3 (6d0b048). If I get time this week I can perform a bisect to figure out when it regressed.

          Show
          Joseph Wynn added a comment - I'm seeing this behaviour again in v2.5.0-BETA3 (6d0b048). If I get time this week I can perform a bisect to figure out when it regressed.
          Hide
          Joseph Wynn added a comment -

          Actually I don't think this was a regression; it looks like a fix was never made. I've opened a PR: https://github.com/doctrine/dbal/pull/655

          Show
          Joseph Wynn added a comment - Actually I don't think this was a regression; it looks like a fix was never made. I've opened a PR: https://github.com/doctrine/dbal/pull/655
          Hide
          Doctrine Bot added a comment -

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

          Show
          Doctrine Bot added a comment - A related Github Pull-Request [GH-655] was closed: https://github.com/doctrine/dbal/pull/655
          Hide
          Doctrine Bot added a comment -

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

          Show
          Doctrine Bot added a comment - A related Github Pull-Request [GH-655] was assigned: https://github.com/doctrine/dbal/pull/655
          Hide
          Marco Pivetta added a comment -

          Re-opened, as this behavior seems reproducible also in 2.4.x

          Show
          Marco Pivetta added a comment - Re-opened, as this behavior seems reproducible also in 2.4.x
          Hide
          Steve Müller added a comment -

          It was never fixed. That seems to have been a misunderstanding here. As pointed out by Marco Pivetta changing this behaviour is a BC break and can't be fixed before 3.0.

          Show
          Steve Müller added a comment - It was never fixed. That seems to have been a misunderstanding here. As pointed out by Marco Pivetta changing this behaviour is a BC break and can't be fixed before 3.0.

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Jan Hruban
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: