Public bug reported:

Consider the following query

variable $x:=<y><a/></y>;
insert node <b/> into $x/a;
rename node $x/a/b as "a";
(
<ev>
{
$x
}
</ev>,
<first>
{
$x//a
}
</first>,
<correct>
{
$x//*
}
</correct>
)

All nodes seem to have the isRecursive flag set to false , thus this
query returns:

<ev>
  <y>
    <a>
      <a/>
    </a>
  </y>
</ev>
<first> <--only 1 a element since the first a is marked as nonRecursive
   <a>
     <a/>
   </a>
</first>
<correct> <--two a elements
   <a>
     <a/>
   </a>
   <a/>
</correct>

** Affects: zorba
     Importance: Critical
     Assignee: Markos Zaharioudakis (markos-za)
         Status: New

** Changed in: zorba
     Assignee: (unassigned) => Markos Zaharioudakis (markos-za)

** Changed in: zorba
   Importance: Undecided => Critical

** Summary changed:

- XPath expression has unexpected result due to unset flag isRecursive
+ XPath expression has unexpected result (unset flag isRecursive?)

** Summary changed:

- XPath expression has unexpected result (unset flag isRecursive?)
+ XPath expression has unexpected result

** Description changed:

  Consider the following query
  
  variable $x:=<y><a/></y>;
  insert node <b/> into $x/a;
  rename node $x/a/b as "a";
  (
  <ev>
  {
  $x
  }
  </ev>,
  <first>
  {
  $x//a
  }
  </first>,
  <correct>
  {
  $x//*
  }
  </correct>
  )
  
- All nodes have the isRecursive flag set to false , thus this query
- returns:
+ All nodes seem to have the isRecursive flag set to false , thus this
+ query returns:
  
  <ev>
-   <y>
-     <a>
-       <a/>
-     </a>
-   </y>
+   <y>
+     <a>
+       <a/>
+     </a>
+   </y>
  </ev>
  <first> <--only 1 a element since the first a is marked as nonRecursive
-    <a>
-      <a/> 
-    </a>
+    <a>
+      <a/>
+    </a>
  </first>
  <correct> <--two a elements
-    <a>
-      <a/>
-    </a>
-    <a/>
+    <a>
+      <a/>
+    </a>
+    <a/>
  </correct>

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/872288

Title:
  XPath expression has unexpected result

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Consider the following query

  variable $x:=<y><a/></y>;
  insert node <b/> into $x/a;
  rename node $x/a/b as "a";
  (
  <ev>
  {
  $x
  }
  </ev>,
  <first>
  {
  $x//a
  }
  </first>,
  <correct>
  {
  $x//*
  }
  </correct>
  )

  All nodes seem to have the isRecursive flag set to false , thus this
  query returns:

  <ev>
    <y>
      <a>
        <a/>
      </a>
    </y>
  </ev>
  <first> <--only 1 a element since the first a is marked as nonRecursive
     <a>
       <a/>
     </a>
  </first>
  <correct> <--two a elements
     <a>
       <a/>
     </a>
     <a/>
  </correct>

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/872288/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to