Issue Type: Bug Bug
Affects Versions: 4.1.3
Assignee: Unassigned
Components: core
Created: 15/Jun/12 5:28 AM
Description:

Database columns defined as Char are handled differently for mysql and postgres dialect. The properties populated in entities are different for the two dialects.

If a column is defined as a fixed length char, the mysql dialect populates an enitity property with a variable length string. The postgres dialect populates an entity property with a fixed length string that has the came length as the database column, padded with whitespace after the string that had been persisted.

I would have expected the two dialects to return the same result, whether that is a fixed length string or a variable length string.

test case:

https://github.com/johnaoahra80/test_cases/tree/master/hibernate/charDialectDelta

Environment: FC16, mysql 5.5.23,
PostgreSQL 9.1.3 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1), 64-bit,
Project: Hibernate ORM
Labels: dialect
Priority: Minor Minor
Reporter: John O'Hara
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira