** Changed in: zorba
Status: Fix Released => Fix Committed
** Changed in: zorba
Milestone: None => 2.1
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867229
Title:
Undo of Create Collection doesn't work
Status in Zorba - The XQuery Processor:
Fix Committed
Bug description:
In the following query an error is raised during the PUL application.
As a consequence the m:aaa collection should be destroyed.
However in UpdCreateCollection::undo() when
GET_STORE().deleteCollection(theName) is invoked, theName contains a NULL
pointer, thus no collection is deleted.
The following query thus returns m:aaa as being available.
import module namespace m = 'xqueryzorba.org/test/xqddf/ic' at
'/zorba/pulsrc/test/rbkt/Queries/zorba/xqddf/ic.xqlib';
import module namespace ddl =
"http://www.zorba-xquery.com/modules/store/static/collections/ddl";
import module namespace dml =
"http://www.zorba-xquery.com/modules/store/static/collections/dml";
import module namespace dddl =
"http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";
import module namespace ic_ddl =
"http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl";
ddl:create($m:empc);
ic_ddl:activate(xs:QName("m:ic_simple"));
try
{
(
dddl:create(xs:QName("m:aaa"))
,
dml:insert-nodes($m:empc,
<emp>
<salary>600</salary>
</emp>
)
);
}
catch * {}
dddl:available-collections()
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867229/+subscriptions
--
Mailing list: https://launchpad.net/~zorba-coders
Post to : [email protected]
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp