We're updating the issue view to help you get more done. 

Wrong type detection for sql type char(x) columns

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.

Environment

Hibernate 3.2.0, Oracle 9.2, Oracle JDBC driver 10.2

Status

Assignee

Strong Liu

Reporter

Markus Heiden

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

3.2.0.ga

Priority

Major