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

        Thomas Fox created issue -
        Thomas Fox made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.0-beta2 [ 12323291 ]
        Resolution Fixed [ 1 ]
        Thomas Fox made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development