Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25886
Modified Files:
Tag: XQuery_0-18
pathfinder.mx
Log Message:
- prevent error in fn:id() if input sequence is empty
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.367.2.5
retrieving revision 1.367.2.6
diff -u -d -r1.367.2.5 -r1.367.2.6
--- pathfinder.mx 9 Jun 2007 23:34:55 -0000 1.367.2.5
+++ pathfinder.mx 11 Jun 2007 09:27:05 -0000 1.367.2.6
@@ -2433,6 +2433,8 @@
{
var loc := str_nil, uri := ""; # nil loc/uri tells vx_lookup to look for
*all* ID/IDREF attributes
+ if (count(id_iter) = 0) return bat(oid,oid);
+
# get root nids, which identify the XML fragment in which we must look
var id_root := get_root(ws, id_item, id_kind, id_cont).mposjoin(id_cont,
ws.fetch(PRE_NID));
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins