Incorrect buffer size estimate for string concatenation in InterbaseDialect

This commit is contained in:
Sanne Grinovero 2012-02-12 00:13:47 +00:00
parent b3bb6d6dd6
commit a8dee131e4
1 changed files with 1 additions and 4 deletions

View File

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