user3808059
user3808059

Reputation: 383

Npgsql freezes while executing query

var qrStr = "delete from products where product_ID = 3;";

var qr = new NpgsqlCommand(qrStr, connection);

qr.ExecuteNonQuery();

The problem is that when qr is being executed, my program completely freezes. product_ID is foreign key for some table.

I think I would get an Npgsql exception, but this happened.

I use Npgsql of some outdated version still.

Upvotes: 0

Views: 215

Answers (1)

user3808059
user3808059

Reputation: 383

Looks like a bug. Got Npgsql of last version and now it's working fine.

Upvotes: 2

Related Questions