Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3875

JDBCMailRepository MSSQL Insert failures

    XMLWordPrintableJSON

Details

    Description

      JDBCMailRepository has two errors in the insert prepared statement if working with MSSQL:

      1. Error Message can not be stored in the JDBC if it is longer then 200 chars, this causes a new exception, and the email can be lost.

      The error field of the email table is only 200 char long, if you try to store a longer error message (i.e. an exception) this will fail as the driver does not cut the message, and the inster statement will throw an exception.

      2. MSSQL Server does throw "cannot convert nvarchar to image"  in case of per_recipient_headers is null.

      In the case that the per_recipient_header is null the field is stored as object, mssql can not handle this and gets a type convertion error.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            adbuch Adrian Bucher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h