-->
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: \ ( Backslash Problem) with Hibernate query execution.
PostPosted: Mon Jun 25, 2007 12:45 pm 
Newbie

Joined: Fri Oct 13, 2006 6:43 am
Posts: 5
Hi,

We are using the Spring with Hibernate to develop the application.

The problem we got with the execution of hibernate query.

Problem occurs when the user enters ‘\’ in any text field and the same data is passed to hibernate.

This requires bringing down jboss and bringing it up.

The following stack trace shows the error ..


21:13:24,088 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42601
21:13:24,089 ERROR [JDBCExceptionReporter] ERROR: unterminated quoted string at or near "'gmoore\' )"
21:13:24,089 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42601
21:13:24,089 ERROR [JDBCExceptionReporter] ERROR: unterminated quoted string at or near "'gmoore\' )"
21:13:24,089 ERROR [JDBCExceptionReporter] Could not execute query
java.sql.SQLException: ERROR: unterminated quoted string at or near "'gmoore\' )"
at com.edb.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2057)
at com.edb.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1700)
at com.edb.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:416)
at com.edb.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:432)
at com.edb.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:364)
at com.edb.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:270)


Thanks & Regards.
Murthy


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.