mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 13:25:19 +00:00
HHH-4943
This commit is contained in:
parent
4c98afbbad
commit
c6db5cfdcb
@ -36,7 +36,7 @@ public String getDropSequenceString(String sequenceName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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();
|
||||||
|
@ -98,7 +98,7 @@ public boolean supportsLimit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user