0

I use Npgsql.dll ver. 2.2.2.0 as Data provider in my C# application and when I perform insert/update/delete operation that causes constraint violation provider raises "42601 syntax error" instead of proper exception.

The same situation is with custom exceptions from PostgreSQL functions.

However divide by zero exception is properly re-thrown by Npgsql.

How do I change such an odd behavior?

1 Answer 1

1

The issue resolved by downgrading to Npgsql.dll ver. 1.3. Unfortunately it's not the proper solution, but it works fine at least.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.