Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NpgsqlCommand.ExecuteNonQuery() throwing Backend sent unrecognized response type: F when try to insert in a table

I am using Npgsql to connect my .Net application to Postgres database. It works well with select queries but when I try to run insert query with parameters, it throwing error.

like image 747
Harendra Avatar asked Nov 21 '25 03:11

Harendra


1 Answers

For me, it turned out I was inserting duplicate Ids (Id=0).

like image 161
ANeves Avatar answered Nov 22 '25 17:11

ANeves