COPY [xxx RECORDS] INTO foo FROM STDIN ... doesn't work without specifying nr of to be copied records #6669
Last updated: 2019-04-30 12:36:04 +0200
Date: 2018-12-15 09:41:53 +0100
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0
When copying from stdin the user seems to be obliged to provide the number of records to be inserted. Which could be fine because I can imagine that it is otherwise hard to know when the last record is seen when reading from stdin. However this isn't immediately clear from the documentation and error message.
Steps to Reproduce:
1.create table if not exists foo (bar int, baz varchar(10));
Failed to import table 'foo', Column value 1 missing
Failed to import table 'foo', nr of records have to be specified when copying from standard input.
If it is warranted that COPY INTO fails in this case, please also update the documentation to make that point clear.
Date: 2018-12-19 11:02:20 +0100
empty line used to also mark the end, that seems gone. Probably better
Date: 2018-12-21 10:03:14 +0100
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=d5b35d896228
Date: 2018-12-21 10:39:08 +0100
Changeset looks fine to me, if the documentation is updated accordingly I would consider this issue fixed.
Date: 2019-01-04 10:00:13 +0100
(In reply to aris from comment 3)
Some text has been added to .
Date: 2019-01-04 14:58:35 +0100
Looks very clear to me. I vote for marking the report as fixed and closing it.
Date: 2019-02-05 13:04:59 +0100
This issue is still reproducible on MacOs Mojave.
Date: 2019-02-05 16:09:47 +0100
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=a08ab79eedf3
Date: 2019-02-05 16:10:25 +0100
Fixed properly this time.
The text was updated successfully, but these errors were encountered: