on 08-26-2013 1:31 PM
Hi All,
We have a case here where we are connecting a Oracle DB located in different region and hence we are sending the data with the help of J2SEE adapters.
When we are sending data with single quotes (') we are receiving the below error:
Error parsing message content: Technical description "java.sql.SQLException: ORA-00917: missing comma
We are using the DB parameter: db.apostropheEsc=\' to escape the quotes. But this does not help.
When we remove the single quotes from the message it process successfully even though we have single quotes in date fields where we are using TO_DATE function.
Can some one help us here?
Thanks for your help in advance!
Hi Biswajit,
Try putting two double quotes in sql query where you need quotes - for example :
SQL> SELECT 'ABC''S' name FROM DUAL;
this will evaluate to ABC'S
What is the Oracle version.
Regards
Subhro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works fine!
Thank you for your help.
Regards,
Biswajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Biswajit,
Could you please post the exact query string you are sending ?
Also pls check this thread http://scn.sap.com/message/7822733
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.