-->
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.  [ 3 posts ] 
Author Message
 Post subject: Bug in SchemaUpdate with quoted identifiers ?!?
PostPosted: Mon Mar 27, 2006 6:16 am 
Newbie

Joined: Mon Mar 27, 2006 5:58 am
Posts: 6
With 3.1 there seems to be a bug generating upgrade scripts if the table names are quoted.

In org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata() there is a check that looks if the database storesUpperCaseIdentifiers() or storesLowerCaseIdentifiers(). PostgreSQL e.g. returns on the second true which is the default behaviour for it if NO quoted identifiers are used.

In my case, I use upper letters within in my quoted table name, getTableMasterdata() tries to convert my table name into lower case first. Of course after that, the lowercase latter is not found within the databse anymore, so the method returns null.

I think there are some checks missing against storesLowerCaseQuotedIdentifiers(), ...

Regards
Darius


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 7:34 am 
Newbie

Joined: Mon Mar 27, 2006 5:58 am
Posts: 6
Ok, after diggin' around for a while, I've found a Jira that was created already on exactly the same issue:

http://opensource.atlassian.com/projects/hibernate/browse/HHH-1205

I am not that happy about the fact that the jira was closed with the reason that this is not a public API ...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 5:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
create a patch and submit it as a new jira with a testcase that shows it working.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.