All,
I have a requirement wherein i have to query based on two conditions. For some reason the queries don't get executed as the parameters are in xpath language. I have tried in Oracle and in SQLServer and I get the same error.
I noticed that the queries work as long as there are no or 1 condition but not when there are more than two.
I am pretty sure am missing something here to formulate the query, maybe escape sequence or quotations.
my query is like this :
select column_1 from table1 where folderId ={$ /process_data/@FolderId $} and tp = '{$ /process_data/@TechPackNum $}'
error in the sqlwindow is
Exception: Internal error.. Cause: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
server log :
--
ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterLocal.doSupports(c om.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transacti onCallback) throws com.adobe.idp.dsc.DSCException:
java.lang.RuntimeException: Incorrect syntax near '$ '.
at com.adobe.idp.dsc.jdbc.JDBCService.testQuerySingle(JDBCService.java:338)
....
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '$ '.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
whereas for a similar query the error is displayed as when tested with oracle db
'Exception: Non supported SQL92 token at position: 76: $. Cause: Non supported SQL92 token at position: 76: $'
anyone has faced this issue and been able to resolve it ?
any pointers would be greatly appreciated.
I have a requirement wherein i have to query based on two conditions. For some reason the queries don't get executed as the parameters are in xpath language. I have tried in Oracle and in SQLServer and I get the same error.
I noticed that the queries work as long as there are no or 1 condition but not when there are more than two.
I am pretty sure am missing something here to formulate the query, maybe escape sequence or quotations.
my query is like this :
select column_1 from table1 where folderId ={$ /process_data/@FolderId $} and tp = '{$ /process_data/@TechPackNum $}'
error in the sqlwindow is
Exception: Internal error.. Cause: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
server log :
--
ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterLocal.doSupports(c om.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transacti onCallback) throws com.adobe.idp.dsc.DSCException:
java.lang.RuntimeException: Incorrect syntax near '$ '.
at com.adobe.idp.dsc.jdbc.JDBCService.testQuerySingle(JDBCService.java:338)
....
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '$ '.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
whereas for a similar query the error is displayed as when tested with oracle db
'Exception: Non supported SQL92 token at position: 76: $. Cause: Non supported SQL92 token at position: 76: $'
anyone has faced this issue and been able to resolve it ?
any pointers would be greatly appreciated.