-->
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: Query.setComment() not working with mysql jdbc driver 5x+
PostPosted: Thu Mar 29, 2007 3:40 pm 
Newbie

Joined: Thu Mar 29, 2007 1:20 pm
Posts: 2
We are using Hibernate 3.1.3 and access mysql with mysql jdbc driver 5.x+.

We can pass a sql comment to the mysql server with a straight jdbc call ( the comment will show up the db server log) but it does not work when we use the Query.setComment() API.

Is this is a known issue, has it been fixed or what would be the solve.


Regards
-Echeyde


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 29, 2007 6:03 pm 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
Did you set hibernate.use_sql_comments to true?

http://www.hibernate.org/hib_docs/v3/re ... n-optional

-Chris


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 29, 2007 8:17 pm 
Newbie

Joined: Thu Mar 29, 2007 1:20 pm
Posts: 2
Thanks, that will help, somehow I could not find it with my inital doc searches.


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.