Incorrect buffer size estimate for string concatenation in InterbaseDialect
This commit is contained in:
parent
b3bb6d6dd6
commit
a8dee131e4
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue