You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to insert data into Postgres db via SSIS #2656
I am unable to insert data into a Postgres db using SSIS.
Error:
column "p1" does not exist
Steps to reproduce:
Create table on target postgres db:
CREATE TABLE public.test (
"id" INT NOT NULL
);
Create dataflow task in SSIS to insert a row into above table. Source data is from another Postgres database. Can be any table containing integer values.
Map dataflow from source to above destination table and execute SSIS package.
Failure occurs on insert. Seems to be the way in which the npgsql connector generates the insert sql command for data to be inserted into the target database.
Regards,
Julian
Further technical details
Npgsql version: 4.0.10
PostgreSQL version: Aurora PostgresSQL
Operating system: Windows Server 2012
Going to close this, we haven't had any other issues opened around this and we can't make a reproduction. There's probably a bug somewhere (could be in SSIS as well) but without more information we won't be able to fix it.
Activity
juliangordon commentedon Sep 30, 2019
juliangordon commentedon Sep 30, 2019
austindrenski commentedon Sep 30, 2019
@juliangordon Are there any logs showing the actual queries being sent?
juliangordon commentedon Sep 30, 2019
@austindrenski - Below is what the query looks like, when checking activity on the postgres db:
INSERT INTO public.test ("id") VALUES (p1)
juliangordon commentedon Oct 1, 2019
@austindrenski - I see that issue #2660 has been closed. Does this fix resolve the issue I am experiencing?
austindrenski commentedon Oct 1, 2019
@juliangordon Yes, that most likely fixes this too. Could you test the preview package for our next patch and report back?
juliangordon commentedon Oct 1, 2019
@austindrenski - Could you provide me with an msi of your latest preview please?
roji commentedon Oct 14, 2019
Just a thought: in the SQL above it seems like the parameter placeholder (@) is missing. ADO.NET drivers do expose some information on how to construct placeholders, we may have some sort of issue there.
Address parameter marker format todo
NinoFloris commentedon Mar 29, 2024
@juliangordon it's been a long time ago but did you end up being successful in inserting data after updating npgsql?
NinoFloris commentedon Jun 27, 2024
Going to close this, we haven't had any other issues opened around this and we can't make a reproduction. There's probably a bug somewhere (could be in SSIS as well) but without more information we won't be able to fix it.