I am writing the Content of a csv file to a PostgreSQL table with help of NPGSQL in version 3.2.5.
The content of my csv is the following
id, value
1, 89
2, 286
3, 80
4, 107
I use the following command to write
Using writer = conn.BeginTextImport("COPY tbl_test (id,value) FROM 'C:/temp/test.csv' DELIMITER ',' CSV HEADER")
When I run my code, the values are written into my database, but the command is throwing the following error message:
Received unexpected backend message CompletedResponse. Please file a bug.
When I run the command directly in the SQL Shell everything works fine, so the problem seems to be produced by NPGSQL.
Here is my command which I use in the SQL Shell:
\COPY tbl_test(id,value) FROM 'C:/temp/test.csv' DELIMITER ',' CSV HEADER;
Has anybody else experience with this message?