jdbc error with two {escape '\'}
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


jdbc error with two {escape '\'} Expand / Collapse
Author
Message
Posted 10/3/2007 5:51:31 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/30/2007 6:55:01 AM
Posts: 8, Visits: 2
Hello!

I have SQL query which contains {escape '\'} function.
If I use only one {escape '\'} function all works fine and ResultSet is returned.

But if I insert two or more {escape '\'} JDBC driver throws exception:
java.sql.SQLException: [NCR][Teradata JDBC Driver]:Invalid parameter number: 3
at com.ncr.teradata.StatementParameters.verify(StatementParameters.java:493)
at com.ncr.teradata.TeraPreparedStatement.setInt(TeraPreparedStatement.java:354)

(This is PreparedStatement with 3 parameters and only 3 values was set.)

I tried to run this query via SQL Assistant and query was execute without any problems.

Is it problem with JDBC driver ?
Can anybody help me?

Thanks.
Post #9086
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 6:46am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 7 queries. Compression Disabled.