member accessor on object raises XPTY0004

Bug #922432 reported by Matthias Brantner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Markos Zaharioudakis

Bug Description

The following query raises [err:XPTY0004]: ~NoTypePromotion_json

let $obj :=
  {
      "glossary": {
          "title": "example glossary",
      "GlossDiv": {
              "title": "S",
        "GlossList": {
                  "GlossEntry": {
                      "ID": "SGML",
            "SortAs": "SGML",
            "GlossTerm": "Standard Generalized Markup Language",
            "Acronym": "SGML",
            "Abbrev": "ISO 8879:1986",
            "GlossDef": {
                          "para": "A meta-markup language, used to create markup languages such as DocBook.",
              "GlossSeeAlso": ["GML", "XML"]
                      },
            "GlossSee": "markup"
                  }
              }
          }
      }
  }
return $obj("glossary")("title")

Revision history for this message
Markos Zaharioudakis (markos-za) wrote :

By the way, you have not added a member-selector function for pairs.

Changed in zorba:
status: New → Fix Committed
Changed in zorba:
milestone: none → 2.2
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.