Update of /cvsroot/monetdb/pathfinder/compiler/algebra/map
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6885/compiler/algebra/map
Modified Files:
map_ori_names.c map_unq_names.c
Log Message:
* Added the correct mil implementation for the error operator.
Basically it checks at runtime if the BAT with the error message strings is
empty or not. If it is not empty, only one error is produced by fetching
the first row of the BAT.
* Added semantics for the error operator. That actually changed the signature
of the PFla_error and PFpa_error functions so alot of files had to adjust
to these changes. We use the same semantics structure as the cond_err
operator but disregard the sem.err.str part.
Index: map_ori_names.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/map/map_ori_names.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- map_ori_names.c 13 Dec 2007 13:08:15 -0000 1.24
+++ map_ori_names.c 19 Dec 2007 22:39:07 -0000 1.25
@@ -838,7 +838,8 @@
break;
case la_error:
- res = error (PROJ(LEFT, p));
+ res = error (PROJ(LEFT, p),
+ PFprop_ori_name_left (p->prop, p->sem.err.att));
break;
case la_cond_err:
Index: map_unq_names.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/map/map_unq_names.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- map_unq_names.c 13 Dec 2007 13:08:16 -0000 1.23
+++ map_unq_names.c 19 Dec 2007 22:39:07 -0000 1.24
@@ -748,7 +748,7 @@
break;
case la_error:
- res = error (U(L(p)));
+ res = error (U(L(p)), UNAME(L(p), p->sem.err.att) );
break;
case la_cond_err:
res = cond_err (U(L(p)), U(R(p)),
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins