Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6717

selector can match incorrectly due to different type for values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • qpid-cpp-0.34
    • qpid-cpp-1.35.0
    • C++ Broker
    • None

    Description

      E.g. a selector "x BETWEEN 1 AND 10" would match for a value of x="foo", because of the way the logic is implemented for the between expression, or a selector "x NOT IN ('a', 'b', 'c')" would match where x=1, though it should not due to the type mismatch.

      From JMS spec: "Only like type values can be compared. One exception is that it is valid to compare exact numeric values and approximate numeric values"

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            gsim Gordon Sim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: