on 05-08-2017 11:35 AM
Hi Experts ,
When Executing a Dynamic Query through dbisql to Sybase IQ 16.0 sp01 we are getting the result, but when the same query is executed through an App we are getting Semi-Join Error.
The App is based on Java Framework and we are using jconnect3 . The Jdbc Property Parameter "Dynamic_Prepare" is explicitly set to False.
Query body is -
Select m.a,sum(f.c),sum(m.b) .... into table_session_001 from ( Select ...... from a inner join b .....
union all
Select .... from c inner join d)
As f )
where m.pk = f.pk group by m.a.
Error Snippet below
SQL state [QSB13]; error code [21]; SQL Anywhere Error -1009113: Secondary error noted. Semi-Join not ready at join DFO #25. -- (dflib/dfo_VerticalLeafCursor.cxx 2026) ; nested exception is com.sybase.jdbc3.jdbc.SybSQLException: SQL Anywhere Error -1009113: Secondary error noted. Semi-Join not ready at join DFO #25. -- (dflib/dfo_VerticalLeafCursor.cxx 2026) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)..........................................
I think the problem is probably caused by the version of the JDBC driver is not compatible with IQ 16.0 SP01. IQ 16.0 SP01 is only certified with jConnect™ for JDBC™ 7.0. Your current java program is working with jconnect 6.x (I guess you meant "jconn3.jar" by "jconnect3", jconn3.jar is the driver of jconnect 6.x). I suggest you upgrade your java program to use jconnect 7.x (jconn4.jar).
Here is the document about product compatibility of IQ 16.0 SP01:
Best regards,
Lifang Li
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gi-sung Jang ,
The issue persists after setting these parameters in isolation or as a whole. I suspect there is an issue in the Jconnect.
Anyway thanks for your Contribution and taking out the time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hi, Please test with the following possible workarounds.
1. set temporary option EARLY_PREDICATE_EXECUTION = OFF ;
2. set temporary option DML_Options9 =8 ;
3. set temporary option join_preference='-7';
Best Regards,
Gi-Sung Jang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.