You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/04/04 22:29:02 UTC
[jira] [Updated] (LOG4NET-505) AdoNetAppender with Npgsql data
provider
[ https://issues.apache.org/jira/browse/LOG4NET-505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers updated LOG4NET-505:
--------------------------------
LOG4NET is now dormant.
> AdoNetAppender with Npgsql data provider
> ----------------------------------------
>
> Key: LOG4NET-505
> URL: https://issues.apache.org/jira/browse/LOG4NET-505
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 1.2.15
> Reporter: Vadim Ivanou
> Priority: Major
>
> I'm trying to use AdoNetAppender with postgresql database and Npgsql data provider 3.0.x. Unfortunately it throws an exception in SendBuffer method while executing dbCmd.Prepare(). I believe the reason for that is that Npgsql requires all Parameters to be present in a command before calling Prepare method. I created my own adapter that overrides SendBuffer method and populates sql command parameters before Prepare and it worked fine.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)