-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Dialect differences between postgres and mysql databases
PostPosted: Fri Jun 15, 2012 6:17 am 
Newbie

Joined: Thu Jun 14, 2012 11:00 am
Posts: 5
Database columns defined as Char are handled differently for mysql and postgres dialects. The properties populated in entities are different for the two dialects.

If a column is defined as a fixed length char(n), 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.


Top
 Profile  
 
 Post subject: Re: Dialect differences between postgres and mysql databases
PostPosted: Fri Jun 15, 2012 6:30 am 
Newbie

Joined: Thu Jun 14, 2012 11:00 am
Posts: 5
I have created a jira;

HHH-7393 CHAR database column - dialect delta between postgres and mysql databases


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.