Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Important
Description
The code
let $x := {
“name” :
}
return $x(“name”)()
returns
{“id” : 123, “first” : “Riyafa”, “Last” : “Abdul Hameed”}but the code,
let $x := {
“name” :
}
let $y := $x(“name”)
return $y()
returns
id
first
Last
But, as both code should return:
id
first
Last
The same issue is present in Array unboxing:
For example the code
let $x := [
[ “mercury”, “venus”, “earth”, “mars” ],
[ “monday”, “tuesday”, “wednesday”, “thursday” ]
]
return $x(1)()
returns
[ “mercury”, “venus”, “earth”, “mars” ]
while the code
let $x := [
[ “mercury”, “venus”, “earth”, “mars” ],
[ “monday”, “tuesday”, “wednesday”, “thursday” ]
]
let $y := $x(1)
return $y()
returns
mercury
venus
earth
mars
Here also both should return:
mercury
venus
earth
mars
Attachments
Issue Links
- is part of
-
VXQUERY-178 Support JSONiq
- Open