Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1721

LIKE clausule should accept functions on the pattern

    Details

    • Type: Improvement Improvement
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All

      Description

      Example:
      SELECT .... WHERE upper(n.title) LIKE upper(:filter)

      should be a valid SQL, now is rejected because the walker only accept a variable or an string expression.

      I'm adding a patch to address this.

      1. Parser.patch
        0.8 kB
        Ignacio Larranaga
      2. SqlWalker.patch
        0.9 kB
        Ignacio Larranaga

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Ignacio Larranaga
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: