Doctrine 1
  1. Doctrine 1
  2. DC-960

Bug in OCI8 adapter's freeCursor function causes exception with HYDRATE_ON_DEMAND

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0-ALPHA1, 1.2.0-ALPHA2, 1.2.0-ALPHA3, 1.2.0-BETA1, 1.2.0-BETA2, 1.2.0-BETA3, 1.2.0-RC1, 1.2.0, 1.2.1, 1.2.2, 1.2.3
    • Fix Version/s: None
    • Component/s: Connection
    • Labels:
      None
    • Environment:
      doctrine, symfony, linux, hpux

      Description

      oci_free_statement should be changed to oci_cancel inside Doctrine_Adapter_Statement_Oracle::closeCursor(). Otherwise exception is thrown if HYDRATE_ON_DEMAND is used followed by foreach loop.

      Doctrine2 should also be affected by this bug.

      Change:
      public function closeCursor()

      { $this->bindParams = array(); return oci_free_statement($this->statement); }

      To:
      public function closeCursor()

      { $this->bindParams = array(); return oci_cancel($this->statement); }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            vadik56
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: