Changeset: a0cf96807701 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a0cf96807701
Modified Files:
gdk/gdk_batop.c
Branch: default
Log Message:
Disallow BATsort with first two arguments NULL.
diffs (16 lines):
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -1282,9 +1282,10 @@ BATsort(BAT **sorted, BAT **order, BAT *
}
assert(reverse == 0 || reverse == 1);
assert(stable == 0 || stable == 1);
- if (sorted == NULL && order == NULL && groups == NULL) {
+ if (sorted == NULL && order == NULL) {
/* no place to put result, so we're done quickly */
- return GDK_SUCCEED;
+ GDKerror("BATsort: no place to put the result.\n");
+ return GDK_FAIL;
}
if (g == NULL && !stable) {
/* pre-ordering doesn't make sense if we're not
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list