Torque
  1. Torque
  2. TORQUE-234

Intuitive way of using one-arg operators in Criteria

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta1
    • Fix Version/s: 4.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently, one-arg operators must be used like
      Criteria.and/or/where(operand, null, Criteria.ISNULL/Criteria.ISNOTNULL).

      It currently is no compile error to write
      Criteria.and/or/where(operand, Criteria.ISNULL/Criteria.ISNOTNULL)
      but this is interpreted as operand = ISNULL/ISNOTNULL
      which is not what the user intended.

      The above expression should instead be interpreted as operand ISNULL/ISNOTNULL.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Thomas Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development