Uploaded image for project: 'Hibernate ORM'
  1. HHH-2304

Wrong type detection for sql type char(x) columns

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0.ga
    • Fix Version/s: 3.6.8, 4.0.0.CR5
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      Hibernate 3.2.0, Oracle 9.2, Oracle JDBC driver 10.2
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      When executing a sql query which returns columns of sql type char, a java.lang.Character is returned. This leads to returning just the first character of the value. In my eyes a String should be returned when the char type has a width > 1. I wasn't able to determine whether this is a jdbc driver issue or a hibernate issue. When using sql type char for columns of entities no such problems occur.

      Test case is attached.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                12 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: