-->
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.  [ 4 posts ] 
Author Message
 Post subject: How do I change how apostrophes are escaped?
PostPosted: Fri Jul 01, 2005 3:30 pm 
Beginner
Beginner

Joined: Tue Oct 26, 2004 4:59 pm
Posts: 23
Hibernate version: 2.1.7

Name and version of the database you are using:DBC

I'm using the GenericDialect to talk to DBC. It works fine except Hibernate is trying to escape apostrophes in a string with another apostrophe, but DBC wants a backslash. How can I change this behaviour? I assumed it was dialect specific but I can not see in the Dialect class or any of it's subclasses where escape characters are specified. Can someone point me in the right direction of how Hibernate is doing this?

Thanks,
Karl


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 4:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
look closer for quote

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 4:13 pm 
Beginner
Beginner

Joined: Tue Oct 26, 2004 4:59 pm
Posts: 23
max wrote:
look closer for quote


I saw that but wasn't sure what it was for. Thanks.

Karl


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 5:01 pm 
Beginner
Beginner

Joined: Tue Oct 26, 2004 4:59 pm
Posts: 23
I think I need a little more help. I created a class that extends GenericDialiect and added QUOTE and CLOSE_QUOTE just as it is in Dialect, but changed the ` to \\.

Thanks a lot.

Karl


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.