|
@@ -38,7 +38,7 @@ public class SybaseDialect implements IDialect {
|
|
|
@Override
|
|
|
public DialectModel buildPaginationSql(String originalSql, long offset, long limit) {
|
|
|
String tempSql = originalSql.toUpperCase();
|
|
|
- int index = tempSql.indexOf("FROM");
|
|
|
+ int index = tempSql.indexOf(" FROM ");
|
|
|
String sql = "select";
|
|
|
if (hasTop) {
|
|
|
sql += " top " + (offset + limit);
|