Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-468

[GH-288] Fix fetchColumn not caching

    Details

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

      Description

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

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

      Message:

      Column cache wasn't working because the emptied flag is only set
      when fetch no longer returns a row. With fetch column the code
      only calls fetch once and so emptied flag never got set.

      Created two test cases, one to test fetchColumn, and one to test
      that the return value is false if the data doesn't get saved in the cache.

        Issue Links

          Activity

          Hide
          Doctrine Bot added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: