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

Cannot insert Npgsql syntax

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Flags:
      Important

      Description

      Well I saw this was reported before and got fixed once. But apparently it's back.

      I'm using AdoNetAppender with NPgsql. Whenever I insert an x parameter into commandText, it will say that x column doesn't exist. I have tried a variation of :x ?x @x and none seems to work. (:x will say the syntax is error)

      For example:

      <commandText value="INSERT INTO mylog(columnname) VALUES(@x)" />

      <parameter>

      <parameterName value="@x">

      will say that x doesn't exist.

       

      <commandText value="INSERT INTO mylog(columnname) VALUES(:x)" />

      <parameter>

      <parameterName value="x">

      will say that syntax error near :

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              warit Warit achavanuntakul
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: