From 659024713b53b5aee93cbf430950dbd27bf95814 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 8 Aug 2017 13:47:39 -0700 Subject: [PATCH] HHH-11915 - DatabaseMetaData#getIndexInfo can return column names enclosed in quotes on PostgresPlus (cherry picked from commit bb905dcb00d96570ba5327926d2aa5535fe17a1b) --- .../boot/model/naming/DatabaseIdentifier.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/naming/DatabaseIdentifier.java b/hibernate-core/src/main/java/org/hibernate/boot/model/naming/DatabaseIdentifier.java index 88e70f0faf..6d5eae1a96 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/naming/DatabaseIdentifier.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/naming/DatabaseIdentifier.java @@ -14,15 +14,17 @@ import org.hibernate.internal.util.StringHelper; * @author Andrea Boriero */ public class DatabaseIdentifier extends Identifier { + + /** + * Constructs a datatabase identifier instance. + * It is assumed that text is unquoted. + * + * @param text The identifier text. + */ protected DatabaseIdentifier(String text) { super( text ); } - /** - * Constructs a datatabase identifier instance. - * - * @param text The identifier text. - */ public static DatabaseIdentifier toIdentifier(String text) { if ( StringHelper.isEmpty( text ) ) { return null;