-->
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: JDBC escape syntax supported?
PostPosted: Wed Feb 27, 2008 10:44 pm 
Newbie

Joined: Wed Feb 27, 2008 10:36 pm
Posts: 1
A quick question. I'm getting errors from the ANTLR query parser when using JDBC Sql Escape Syntax in my HQL where clause. For example:

"from User u where u.createDate > {ts '2007-02-01 09:00:00'}"

I get a compile error on the '{' character. I understand I can replace the time value with a placeholder (?), but this is a legacy application. Previously, the classic query parser was used, and it worked, but we changed to the newer parser and ran into trouble.


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.