Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-234

Intuitive way of using one-arg operators in Criteria

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-beta1
    • 4.0
    • None
    • 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.

      Attachments

        Activity

          People

            tfischer Thomas Fox
            tfischer Thomas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: