Changeset: 3fccda934d40 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3fccda934d40
Modified Files:
sql/backends/monet5/copy.c
Branch: default
Log Message:
Fix COPY OFFSET error line numbering (#8093)
diffs (12 lines):
diff --git a/sql/backends/monet5/copy.c b/sql/backends/monet5/copy.c
--- a/sql/backends/monet5/copy.c
+++ b/sql/backends/monet5/copy.c
@@ -642,7 +642,7 @@ COPYsplitlines(Client cntxt, MalBlkPtr m
state.end = state.start + (r->bs->jmp[p->wid] ?
r->bs->jmp[p->wid] : r->bs->len[p->wid]);
BUN e = 0;
- r->line_count[p->wid] = r->linecount;
+ r->line_count[p->wid] = r->linecount + r->skipped;
errors.starting_row = r->line_count[p->wid];
msg = COPYfixlines(&line_count, &e, r, p->wid, &errors);
if (msg) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]