Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-542

XQuery with multiple variable references failing with static analysis error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.3
    • BPEL Runtime
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mark.ford Mark Ford
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: