-->
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: Help with Datestyle query
PostPosted: Mon Aug 07, 2006 5:25 pm 
Newbie

Joined: Fri Jul 28, 2006 5:59 am
Posts: 7
Hi all.

In my existing app which I just converted to Hibernate, I had a query which said:

Code:
SET datestyle to EURO


I need to get this to execute via Hibernate, but I get the following error:

QuerySyntaxException: unexpected token: SET near line 1, column 1

Any tips how I can execute this please?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 07, 2006 11:45 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Use JDBC. session.connection().createStatement("SET datestyle to EURO") or similar.

_________________
Code tags are your friend. Know them and use them.


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.