handling PgSqlException - any way to get the underlying SQL?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Andrew MacLeod

handling PgSqlException - any way to get the underlying SQL?

Post by Andrew MacLeod » Thu 14 Apr 2005 16:34

hello,

would anyone care to share their favourite PgErrorHandler(PgSqlException e) method?

most importantly, i would expect the method to extract the offending SQL statement and log it without my having to pass it explicitly to the handler. so far i can't find a property/method to do this. surely there must be a way...

thanks!

Post Reply