Uploaded image for project: 'VXQuery'
  1. VXQuery
  2. VXQUERY-83

General comparison fails for string and attribute query

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I have included two queries. One that works and one that does not. The only difference is "=" vs "eq".

      for $b in collection("/example-xml-full/")/bookstore/book
      where $b/@category = "CHILDREN"
      return $b

      for $b in collection("/example-xml-full/")/bookstore/book
      where $b/@category eq "CHILDREN"
      return $b

      Query is based on W3Schools XQuery Tutorial example xml document.

        Attachments

          Activity

            People

            • Assignee:
              prestonc Preston Carman
              Reporter:
              prestonc Preston Carman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: