Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18301
Modified Files:
gdk_batop.mx
Log Message:
Give a decent error message when a to-be-deleted BUN does not occur
instead of just saying "operation failed".
Index: gdk_batop.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_batop.mx,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- gdk_batop.mx 8 Feb 2008 22:35:05 -0000 1.151
+++ gdk_batop.mx 4 Mar 2008 09:34:17 -0000 1.152
@@ -442,7 +442,7 @@
}
-#define bundel(b,h,t) if (BUNdel(b,h,t,force) == NULL) return NULL;
+#define bundel(b,h,t) do { if (BUNdel(b,h,t,force) == NULL) {
GDKerror("BATdel: BUN does not occur.\n"); return NULL; } } while (0)
BAT *
BATdel(BAT *b, BAT *n, bit force)
{
@@ -458,7 +458,7 @@
return b;
}
-#define bundelhead(b,h,t) if (BUNdelHead(b,h,force) == NULL) return NULL;
+#define bundelhead(b,h,t) do { if (BUNdelHead(b,h,force) == NULL) return NULL;
} while (0)
BAT *
BATdelHead(BAT *b, BAT *n, bit force)
{
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins