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

Shivani Mall commented on VXQUERY-158:
--------------------------------------

Here is my analysis. There are rules that are fired that convert the variable 
into a constant expression to optimize the plan. The rule that does it is 
InlineNestedVariableRule. Since we have the elementConstructor function, this 
rule works. Whatever is the type of the constant expression it is replaced as 
it is. Do you think it is a good idea to replace it with TNP in the Element 
Node Constuctor function itself?

> Can not read/evaluate { } in queries
> ------------------------------------
>
>                 Key: VXQUERY-158
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-158
>             Project: VXQuery
>          Issue Type: Bug
>            Reporter: Shivani Mall
>            Assignee: Preston Carman
>         Attachments: curly_braces_1.png, curly_braces_2.png
>
>
> Queries that contain nested values enclosed in element constructor function 
> fail.
> For example, for the following query the result is missing:
> let $v := "missing"
> return <result><v>{$v}</v></result>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to