Changeset: a183088e9305 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a183088e9305
Modified Files:
monetdb5/modules/mal/tablet.c
sql/ChangeLog.Jul2021
Branch: Jul2021
Log Message:
Report line number in sys.rejects list instead of row number.
diffs (24 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
@@ -643,7 +643,7 @@ tablet_error(READERtask *task, lng row,
{
MT_lock_set(&errorlock);
if (task->cntxt->error_row != NULL) {
- if (BUNappend(task->cntxt->error_row, &(lng){(lng)task->cnt +
row + 1}, false) != GDK_SUCCEED ||
+ if (BUNappend(task->cntxt->error_row, &lineno, false) !=
GDK_SUCCEED ||
BUNappend(task->cntxt->error_fld, &col, false) !=
GDK_SUCCEED ||
BUNappend(task->cntxt->error_msg, msg, false) !=
GDK_SUCCEED ||
BUNappend(task->cntxt->error_input, fcn, false) !=
GDK_SUCCEED)
diff --git a/sql/ChangeLog.Jul2021 b/sql/ChangeLog.Jul2021
--- a/sql/ChangeLog.Jul2021
+++ b/sql/ChangeLog.Jul2021
@@ -3,5 +3,7 @@
* Mon Aug 16 2021 Sjoerd Mullender <[email protected]>
- Improved error reporting in COPY INTO by giving the line number
- (starting with one) for the row in which an error was found.
+ (starting with one) for the row in which an error was found. In
+ particular, the sys.rejects() table now lists the line number of the
+ CSV file on which the record started in which an error was found.
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list