This commit is contained in:
Strong Liu 2011-06-06 14:19:05 +08:00
parent 4c98afbbad
commit c6db5cfdcb
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class FirebirdDialect extends InterbaseDialect {
} }
public String getLimitString(String sql, boolean hasOffset) { public String getLimitString(String sql, boolean hasOffset) {
return new StringBuffer( sql.length() + 20 ) return new StringBuilder( sql.length() + 20 )
.append( sql ) .append( sql )
.insert( 6, hasOffset ? " first ? skip ?" : " first ?" ) .insert( 6, hasOffset ? " first ? skip ?" : " first ?" )
.toString(); .toString();

View File

@ -98,7 +98,7 @@ public class InterbaseDialect extends Dialect {
} }
public String getLimitString(String sql, boolean hasOffset) { public String getLimitString(String sql, boolean hasOffset) {
return new StringBuffer( sql.length()+15 ) return new StringBuilder( sql.length()+15 )
.append(sql) .append(sql)
.append(hasOffset ? " rows ? to ?" : " rows ?") .append(hasOffset ? " rows ? to ?" : " rows ?")
.toString(); .toString();