[
https://issues.jboss.org/browse/TEIID-2157?page=com.atlassian.jira.plugin...
]
Van Halbert commented on TEIID-2157:
------------------------------------
$ diff -u
SybaseExecutionFactory.java.org SybaseExecutionFactory.java
---
SybaseExecutionFactory.java.org 2012-04-27 15:15:09.732258050 +0900
+++ SybaseExecutionFactory.java 2012-07-27 11:46:17.897220541 +0900
@@ -60,6 +60,7 @@
public class SybaseExecutionFactory extends JDBCExecutionFactory {
public static final String TWELVE_5 = "12.5"; //$NON-NLS-1$
+ public static final String TWELVE_5_3 = "12.5.3"; //$NON-NLS-1$
public static final String FIFTEEN_0_2 = "15.0.2"; //$NON-NLS-1$
public static final String FIFTEEN_5 = "15.5"; //$NON-NLS-1$
@@ -391,4 +392,8 @@
return false;
}
+ @Override
+ public boolean supportsRowLimit() {
+ return getDatabaseVersion().compareTo(TWELVE_5_3) >= 0;
+ }
}
Need ability to push down LIMIT clause to Sybase
------------------------------------------------
Key: TEIID-2157
URL:
https://issues.jboss.org/browse/TEIID-2157
Project: Teiid
Issue Type: Feature Request
Components: JDBC Connector
Affects Versions: 7.7.1
Reporter: Van Halbert
Assignee: Johnathon Lee
Fix For: 7.7.1
Want to add the ability to push down LIMIT clause to Sybase, but it is not
supported as of now, becasue the LIMIT translation capability is
disabled.
SybaseExecutionFactory#supportsRowLimit returns false and it is
hard-coded. If it returns true, EDS can push down
LIMIT to Sybase translating it to TOP clause, since SybaseExecutionFactory has
translateLimit
method which translate the LIMIT to TOP clause. The customer want a
property which can be switched on the limit translation easily than
writing java code.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira