You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Karthick Sankarachary (JIRA)" <ji...@apache.org> on 2009/08/07 22:31:14 UTC

[jira] Commented: (ODE-542) XQuery with multiple variable references failing with static analysis error

    [ https://issues.apache.org/jira/browse/ODE-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740710#action_12740710 ] 

Karthick Sankarachary commented on ODE-542:
-------------------------------------------

The patch for ODE-646, which looks good to me, has been checked in...

Revision: 802169
Author: karthick
Date: 1:29:03 PM, Friday, August 07, 2009
Message:
This patch resolves ODE-646 as well as ODE-542. Thanks to Mark Ford!
----
Modified : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/main/java/org/apache/ode/bpel/elang/xquery10/compiler/XQuery10ExpressionCompilerImpl.java
Added : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/test/java/org/apache/ode/bpel/elang/xquery10
Added : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/test/java/org/apache/ode/bpel/elang/xquery10/compiler
Added : /ode/branches/APACHE_ODE_1.X/bpel-compiler/src/test/java/org/apache/ode/bpel/elang/xquery10/compiler/XQuery10ExpressionCompilerImplTest.java

> XQuery with multiple variable references failing with static analysis error
> ---------------------------------------------------------------------------
>
>                 Key: ODE-542
>                 URL: https://issues.apache.org/jira/browse/ODE-542
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Mark Ford
>            Priority: Minor
>             Fix For: 1.3.3
>
>
> ODE adds a preamble to XQuery expressions prior to executing them. This preamble includes the namespace declarations and external variable declarations. I got a static analysis error saying that there was a duplicate global variable declaration. I saw the following under the debugger:
> ...
> declare variable $SubmitRequestResponse.SubmitRequestResponse external ;
> declare variable $SubmitRequestResponse.SubmitRequestResponse external ;
> ...
> I modified the expression to map the global variable to a local variable and use the local variable multiple times instead of referencing the global variable multiple times. This only produced a single declaration for the variable in the preamble and worked fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.