← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/fix_bug_1028879 into lp:zorba

 

Sorin Marian Nasoi has proposed merging lp:~zorba-coders/zorba/fix_bug_1028879 into lp:zorba.

Commit message:
Corrected signature for fn:collection.

Requested reviews:
  Sorin Marian Nasoi (sorin.marian.nasoi)
Related bugs:
  Bug #1028879 in Zorba: "fn:collection(()) bug"
  https://bugs.launchpad.net/zorba/+bug/1028879

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/fix_bug_1028879/+merge/156718

Corrected signature for fn:collection.
-- 
https://code.launchpad.net/~zorba-coders/zorba/fix_bug_1028879/+merge/156718
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/functions/pregenerated/func_collections.cpp'
--- src/functions/pregenerated/func_collections.cpp	2013-03-05 23:11:50 +0000
+++ src/functions/pregenerated/func_collections.cpp	2013-04-02 22:57:25 +0000
@@ -320,7 +320,7 @@
       {
     DECL_WITH_KIND(sctx, fn_collection,
         (createQName("http://www.w3.org/2005/xpath-functions","","collection";), 
-        GENV_TYPESYSTEM.STRING_TYPE_ONE, 
+        GENV_TYPESYSTEM.STRING_TYPE_QUESTION, 
         GENV_TYPESYSTEM.ANY_NODE_TYPE_STAR),
         FunctionConsts::FN_COLLECTION_1);
 

=== modified file 'src/runtime/spec/collections/collections.xml'
--- src/runtime/spec/collections/collections.xml	2013-03-24 20:40:03 +0000
+++ src/runtime/spec/collections/collections.xml	2013-04-02 22:57:25 +0000
@@ -212,7 +212,7 @@
       </zorba:signature>
 
       <zorba:signature localname="collection" prefix="fn">
-        <zorba:param>xs:string</zorba:param>
+        <zorba:param>xs:string?</zorba:param>
         <zorba:output>node()*</zorba:output>
       </zorba:signature>
 


Follow ups