My Oracle Support Banner

A Prepared Statement ETD which uses "?" for the tablename does not work at runtime. (Doc ID 1332453.1)

Last updated on JUNE 27, 2013

Applies to:

Sun Schema Runtime Environment (SRE) - Version 5.0.5u1 to 5.0.5u2 [Release 5.0]
Sun e*Gate - Version 4.5.3 and later
Information in this document applies to any platform.
***Checked for relevance on 28-Jun-2013***

Symptoms

A Prepared Statement ETD which uses "?" for the tablename does not work at runtime.

eg. If the Database ETD Wizard is used to build an ETD for the following SQL statements :

"select * from ? where ?"

or

"?"

then the resulting ETD does not have a executeQuery() method, and calling executeUpdate() fails with :

17:38:33.031 COL I 5664 (java_extensions.cxx:1442): getMessage: [colWhere] JCCollabControllerImpl JCCollabControllerImpl::translate(): Error in executing translate method
17:38:33.031 COL I 5664 (java_extensions.cxx:1442):
17:38:33.046 COL I 5664 (java_extensions.cxx:1442): StackTrace:
java.sql.SQLException: [SeeBeyond][SQLServer JDBC Driver][SQLServer]Incorrect syntax near '@P1'.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.