You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Luiz Santos (JIRA)" <ji...@apache.org> on 2016/09/19 16:18:20 UTC

[jira] [Commented] (LOG4NET-505) AdoNetAppender with Npgsql data provider

    [ https://issues.apache.org/jira/browse/LOG4NET-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15503890#comment-15503890 ] 

Luiz Santos commented on LOG4NET-505:
-------------------------------------

I'd like to write a patch and a test for this issue, how should I proceed ?

> 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
>
> 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
(v6.3.4#6332)