zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #04289
[Bug 924595] Re: JSONiq: cannot create mixed JDM/XDM sequence
** Changed in: zorba
Status: New => Fix Committed
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/924595
Title:
JSONiq: cannot create mixed JDM/XDM sequence
Status in Zorba - The XQuery Processor:
Fix Committed
Bug description:
zorba -q 'let $foo := ({"foo":1},<xml/>) return 1'
results in
Zorba error [zerr:ZXQP0002]: "false": assertion failed; raised at
/home/ceej/zo/src/src/types/typemanagerimpl.cpp:943
(This isn't an issue with serialization, as the query isn't attempting
to serialize a mixed sequence.)
Matthias sez:
"The assertion is triggered because STRUCTURED_ITEM_KIND is not
handled in the switch in TypeManagerImpl::create_type. It's happening
in the rewriter, so executing the query with --optimization-level O0
should work."
And indeed, the above query works with O0.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/924595/+subscriptions
References