Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA1
    • Fix Version/s: 2.0-BETA2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      I've been working on a MaterializedPath implementation and hit a roadblock.

      This condition:

      // $pathInterval = array('00010001', '0001ZZZZ');
      $andX->add($expr->between('e.' . $this->getPathFieldName(), $expr->literal($pathInterval[0]), $expr->literal($pathInterval[1])));
      

      results in this SQL:

      AND (l0_.path BETWEEN 00010000 AND '0001ZZZZ')
      

      This is clearly not correct. Numeric strings should still be quoted if the field is of type string.

        Activity

        Show
        David Abdemoulaie added a comment - Fixed in http://github.com/doctrine/doctrine2/commit/b6a5402bcb014e78eb6c0b841609e6f0bba71ef6

          People

          • Assignee:
            David Abdemoulaie
            Reporter:
            David Abdemoulaie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: