Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-792

Column size to big for database columns used by DBAppender

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 1.0.9
    • logback-classic
    • None
    • Database: mssql

    Description

      I am logging data into a mssql database with the DBAppender.

      When I created the necessary tables with the provided script I experienced the following error:

      Error 2750: Specified Column Precision 40 Is Greater Than the Maximum Precision of 38.

      The column size of the column event_id in all tables is to large

      The following script contains the error:
      https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/db/script/mssql.sql

      I changed the column size to 38 and that works.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            agerbig Alexander Gerbig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: