Changeset: d5b35d896228 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d5b35d896228
Modified Files:
monetdb5/modules/mal/tablet.c
Branch: Aug2018
Log Message:
COPY INTO ... FROM STDIN stops at empty line if no RECORDS count specified.
This fixes bug 6669.
Note that this change does not affect COPY INTO from an actual file,
nor does it affect COPY INTO FROM STDIN when a count of the number of
records to be ingested is specified.
diffs (14 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
@@ -1334,6 +1334,10 @@ SQLproducer(void *p)
* scan ended (we need to back off some since we could be in
* the middle of the record separator). If this is too
* costly, we have to rethink the matter. */
+ if (task->out && *s == '\n' && task->maxrow == BUN_NONE) {
+ ateof[cur] = true;
+ goto reportlackofinput;
+ }
for (e = s; *e && e < end && cnt < task->maxrow;) {
/* tokenize the record completely the format of the
input
* should comply to the following grammar rule [
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list