Changeset: f26969d59d8d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f26969d59d8d
Modified Files:
monetdb5/modules/mal/tablet.c
Branch: Jun2016
Log Message:
Fix crash when not all columns are used for COPY INTO.
diffs (13 lines):
diff --git a/monetdb5/modules/mal/tablet.c b/monetdb5/modules/mal/tablet.c
--- a/monetdb5/modules/mal/tablet.c
+++ b/monetdb5/modules/mal/tablet.c
@@ -1996,7 +1996,8 @@ SQLload_file(Client cntxt, Tablet *as, b
#endif
for (i = 0; i < as->nr_attrs; i++) {
BAT *b = task->as->format[i].c;
- BATsettrivprop(b);
+ if (b)
+ BATsettrivprop(b);
GDKfree(task->fields[i]);
}
GDKfree(task->fields);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list