[ 
https://issues.apache.org/jira/browse/VXQUERY-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15374073#comment-15374073
 ] 

ASF subversion and git services commented on VXQUERY-212:
---------------------------------------------------------

Commit d19fa26307e6d6fce3ed9f4bcb49fba9428dcc72 in vxquery's branch 
refs/heads/master from riyafa
[ https://git-wip-us.apache.org/repos/asf?p=vxquery.git;h=d19fa26 ]

VXQUERY-212 Dynamic object construction syntax


>  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
>
> 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)

Reply via email to