BUG #14430: NPGSQL error

From: zmokdad(at)vanrise(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14430: NPGSQL error
Date: 2016-11-24 07:58:20
Message-ID: 20161124075820.6530.49414@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14430
Logged by: zeinab mokdad
Email address: zmokdad(at)vanrise(dot)com
PostgreSQL version: 9.6.1
Operating system: Windows
Description:

trying to bulk insert in STDIN an error is raise : COPY file signature not
recognized
note that this was working fine in Npgsql2.0 when upgrading and using
BeginRawBinaryCopy this error is raised.
this is my code :
string r = @"961\t8\t * ****\t3\t0\t0\t1\t11 / 23 / 2016 2:33:35
PM\t8\t1\t1\t100\t100\t0\t100\t0\t0\t0\t0\t0";
data = GetBytes(r);
using (var outStream = conn.BeginRawBinaryCopy("COPY BINARY
rt197_temp FROM STDIN"))
{
outStream.Write(data, 0, len);
}

is there any special way to determine fields seperator or EOF.

Browse pgsql-bugs by date

  From Date Subject
Next Message benjie 2016-11-24 11:49:11 BUG #14431: ERROR: XX000: relation 5022917 has no triggers ("should not happen")
Previous Message Michael Paquier 2016-11-24 02:34:13 Re: Index file got removed