From c6db5cfdcbc4fa48702e702a417cde70a1e9b19c Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Mon, 6 Jun 2011 14:19:05 +0800 Subject: [PATCH] HHH-4943 --- .../src/main/java/org/hibernate/dialect/FirebirdDialect.java | 2 +- .../src/main/java/org/hibernate/dialect/InterbaseDialect.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java index 3ffe810be8..ddc6a787fe 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java @@ -36,7 +36,7 @@ public class FirebirdDialect extends InterbaseDialect { } public String getLimitString(String sql, boolean hasOffset) { - return new StringBuffer( sql.length() + 20 ) + return new StringBuilder( sql.length() + 20 ) .append( sql ) .insert( 6, hasOffset ? " first ? skip ?" : " first ?" ) .toString(); diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java index 83efc2901e..985fd17fdf 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java @@ -98,7 +98,7 @@ public class InterbaseDialect extends Dialect { } public String getLimitString(String sql, boolean hasOffset) { - return new StringBuffer( sql.length()+15 ) + return new StringBuilder( sql.length()+15 ) .append(sql) .append(hasOffset ? " rows ? to ?" : " rows ?") .toString();