On Tue, Jul 08, 2008 at 10:48:25AM +0200, Jan Rittinger wrote:
On 07/08/2008 10:08 AM, Lefteris wrote with possible deletions:
Hi Jan,
we checked this with Jennie yesterday and as Jennie correctly pointed out the fn:put function has changed in the specification to have a returning type of an empty sequence rather than none. By changing the returned type in semantics/xquery_fo.c for function fn:put to something random (ex. PFty_anyNode) it did "work". However, to have a correct fix, is there any way to define that the return type is an empty sequence?
If I define the return type of fn:put as PFty_star( PFty_xs_anyElement ()), both of my problems disappear, i.e. the warning is gone, and my first query also gives correct results.
You probably mean PFty_empty().
This might indeed be the type we are looking for, however, in the final generated MIL code, it contains no translation for fn:put() at all. The simplification/optimization steps didn't know that this "senseless" function has some side effect:) I will try to find where fn:put has been simplified, or maybe Jan already has an idea? Jennie
-- Jan Rittinger Database Systems Technische Universität München (Germany) http://www-db.in.tum.de/~rittinge/
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users