← Back to team overview

zorba-coders team mailing list archive

[Bug 871623] Re: Assertion failed with insert after in a collection

 

** Changed in: zorba
       Status: New => Fix Released

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

Title:
  Assertion failed with insert after in a collection

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  The following query crashes zorba with an assertion failure:

  import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
  import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;

  ddl:create(xs:QName("ddl:test2"),(<center1/>,<oldlast/>));
  dml:insert-nodes-after(xs:QName("ddl:test2"), dml:collection(xs:QName("ddl:test2"))[1], (<c1/>,<c2/>));

  dml:collection(xs:QName("ddl:test2"))/self::node()

  Also

  import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
  import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;

  ddl:create(xs:QName("ddl:test2"),(<center1/>,<oldlast/>));

  dml:insert-nodes-before(xs:QName("ddl:test2"), dml:collection(xs:QName("ddl:test2"))[2], (<c1/>,<c2/>));
  dml:collection(xs:QName("ddl:test2"))/self::node()

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


References