Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-715

Using caching with fetchColumn() of single row does not work

    Details

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

      Description

      The caching mechanism only triggers when the cursor is fully iterated and the result is closed. This breaks caching for code of the kind:

      $cnt = $conn->executeQuery($sql)->fetchColumn();
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated: