Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv16427/compiler/semantics

Modified Files:
      Tag: XQuery_0-16
        xquery_fo.c 
Log Message:
- fix problems in information functions (pf:documents/collections)
  when documents have been deleted from multi-document collections



Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.100.2.3
retrieving revision 1.100.2.4
diff -u -d -r1.100.2.3 -r1.100.2.4
--- xquery_fo.c 11 Feb 2007 11:43:47 -0000      1.100.2.3
+++ xquery_fo.c 21 Feb 2007 23:43:46 -0000      1.100.2.4
@@ -1736,11 +1736,20 @@
       { .ns = PFns_lib, .loc = "documents",
         .arity = 0, .sig_count = 1, .sigs = { {
             .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
+    , /* pf:documents-unsafe () as element()* */
+      { .ns = PFns_lib, .loc = "documents-unsafe",
+        .arity = 0, .sig_count = 1, .sigs = { {
+            .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
     , /* pf:documents (string*) as element()* */
       { .ns = PFns_lib, .loc = "documents",
         .arity = 1, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_star( PFty_xs_string ()) },
             .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
+    , /* pf:documents-unsafe (string*) as element()* */
+      { .ns = PFns_lib, .loc = "documents-unsafe",
+        .arity = 1, .sig_count = 1, .sigs = { {
+            .par_ty = (PFty_t[]) { PFty_star( PFty_xs_string ()) },
+            .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
     , /* pf:collection (string) as node */
       { .ns = PFns_lib, .loc = "collection",
         .arity = 1, .sig_count = 1, .sigs = { {
@@ -1750,6 +1759,10 @@
       { .ns = PFns_lib, .loc = "collections",
         .arity = 0, .sig_count = 1, .sigs = { {
             .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
+    , /* pf:collections-unsafe () as element()* */
+      { .ns = PFns_lib, .loc = "collections-unsafe",
+        .arity = 0, .sig_count = 1, .sigs = { {
+            .ret_ty = PFty_star( PFty_xs_anyElement ()) } } }
     ,  /* pf:add-doc (string, string) as docmgmt */
       { .ns = PFns_lib, .loc = "add-doc",
         .arity = 2, .sig_count = 1, .sigs = { {


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to