Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-505

AdoNetAppender with Npgsql data provider

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.15
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vadimi Vadim Ivanou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: