-->
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.  [ 1 post ] 
Author Message
 Post subject: Question about quoting of identifiers
PostPosted: Fri Jul 30, 2010 8:13 am 
Newbie

Joined: Fri Jul 30, 2010 7:50 am
Posts: 1
I have a libary with JPA annotated classes (binary) that I know is used in conjunction with MySQL 5. In my case however I want to use it
with MySQL 5.1.

Now I get a SQL Error and when reproducing the SQL query it turns out that the table name "range" causes problems because (indeed!) "range" is a reserved word
in MySQL 5.1. It was NOT a reserved word in MySQL 5.0.

So far so bad.

Now, if I could get Hibernate to quote identifiers by default (which does really not seem to be far off the default behavior I would expect from
any SQL generating tool ... [couldn't resist]) everything could be good again.

Alas I was not able to find anything around Hibernate that would help me reach that goal.

Any idea/help would be great.

Thanks!


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

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.