Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1968

SQLServerDictionery not using DATETIME2 for jdbc driver other than MS JDBC driver

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.1.1, 2.2.0
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: sql
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Use of DATETIME2 db type for Date/Time/Timestamp should based on the SQLServer database version not driver type/vendor.

      As a consequence, if version field is a Timestamp data type, you may get optimistic lock exception due to timestamp precision mismatch and hence update to entity may failed.

        Attachments

        1. OPENJPA-1968.patch
          2 kB
          Albert Lee
        2. TestDDTimestamp.java
          3 kB
          Albert Lee

          Activity

            People

            • Assignee:
              allee8285 Albert Lee
              Reporter:
              allee8285 Albert Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: