[
https://issues.apache.org/jira/browse/VXQUERY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Riyafa Abdul Hameed resolved VXQUERY-212.
-----------------------------------------
Resolution: Fixed
> Dynamic object construction syntax
> -----------------------------------
>
> Key: VXQUERY-212
> URL: https://issues.apache.org/jira/browse/VXQUERY-212
> Project: VXQuery
> Issue Type: Improvement
> Reporter: Riyafa Abdul Hameed
> Assignee: Riyafa Abdul Hameed
>
> The dynamic object construction, merges all the objects returned by the
> inner expression into a single object with a so-called "simple object union".
> A simple object union creates a new object, the pairs property of which is
> obtained by accumulating the pairs of all operand objects. An error
> jerr:JNDY0003 is raised if two pairs with the same name are encountered.
> Example Query:
> let $object1 := { "Captain" : "Kirk" }
> let $object2 := { "First officer" : "Spock" }
> return {| $object1, $object2 |}
> Result:
> {
> "Captain" : "Kirk",
> "First officer" : "Spock"
> }[1]
> [1]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680686311712
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)