Doctrine 1
  1. Doctrine 1
  2. DC-257

Missing identifier quoting in Doctrine_Connection_Oracle

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.12, 1.0.13, 1.1.4, 1.1.5
    • Fix Version/s: 1.2.0-RC1
    • Component/s: Query
    • Labels:
      None
    • Environment:
      Linux, Oracle 10g

      Description

      If identifier quoting is enabled doctrine does not perform quoting in some subqueries.

      $this->quoteIdentifier has to be added as below in Doctrine_Connection_Oracle oracle.php at line 106

      $query = 'SELECT ' . $this->quoteIdentifier('b') . '.' .$column. ' FROM ('.
      'SELECT a.*, ROWNUM AS doctrine_rownum FROM ('
      . $query . ') a '.
      ') ' . $this->quoteIdentifier('b') .' '.
      'WHERE doctrine_rownum BETWEEN ' . $min . ' AND ' . $max;

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Thomas Wahle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: