[prev in list] [next in list] [prev in thread] [next in thread]
List: monetdb-checkins
Subject: MonetDB: Oct2020 - Clear fields in case of error.
From: Sjoerd_Mullender <commits+sjoerd=acm.org () monetdb ! org>
Date: 2021-03-31 14:34:35
Message-ID: hg.b6fc465f021c.1617201275.-802174935738512084 () monetdb-vm0 ! spin-off ! cwi ! nl
[Download RAW message or body]
Changeset: b6fc465f021c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b6fc465f021c
Modified Files:
monetdb5/modules/mal/tablet.c
Branch: Oct2020
Log Message:
Clear fields in case of error.
diffs (17 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
@@ -1095,8 +1095,12 @@ SQLworker(void *arg)
if (SQLload_parse_line(task, j) < 0) {
task->errorcnt++;
// early break unless best effort
- if (!task->besteffort)
+ if (!task->besteffort) {
+ for (j++; j < task->top[task->cur] && j < piece * (task->id +1); j++)
+ for (i = 0; i < task->as->nr_attrs; i++)
+ task->fields[i][j] = NULL;
break;
+ }
}
}
task->wtime = GDKusec() - t0;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic