Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1863

Make determining whether a particular database type supports length adapter-specific not universal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.M1
    • 4.0.M2
    • Core Library
    • None

    Description

      Database implementations vary in regard to which data types they allow a length to be specified for. So the static method TypesMapping.supportsLength should be deprecated and replaced by an adapter-specific method that can be tweaked for each supported database.

      The current implementation causes some bugs in particular with the MergerFactory which relies on the global method TypesMapping.supportsLength when adding a new column to an existing table or changing the datatype of an existing column. The specified length may wrongly be ignored in this case.

      Attachments

        Activity

          People

            johnthuss John Huss
            johnthuss John Huss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: