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

Sybase by default silently truncates a string which is longer than the column length without raising an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.2.1, 1.3.0
    • None
    • None

    Description

      By default, Sybase silently truncates a string which is longer than the column length without raising an exception. To override this behavior, string_rtruncation must be set on. In order to be consistent with other databases (which raise exceptions when a string length is longer than the column length), we will set string_rtruncation on by default for Sybase. For an application that wants to keep Sybase silent truncation behavior, a DBDictionary property "setStringRightTruncationOn" is introduced. When it is set to false in the persistence.xml, the string will be silently truncated during insert/update.

      Attachments

        1. OPENJPA-745.patch
          3 kB
          Fay Wang
        2. OPENJPA-745-1.patch
          3 kB
          Fay Wang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              faywang Fay Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: