HHH-11915 - DatabaseMetaData#getIndexInfo can return column names enclosed in quotes on PostgresPlus

(cherry picked from commit bb905dcb00)
This commit is contained in:
Gail Badner 2017-08-08 13:47:39 -07:00
parent a5839cea07
commit 659024713b
1 changed files with 7 additions and 5 deletions

View File

@ -14,15 +14,17 @@ import org.hibernate.internal.util.StringHelper;
* @author Andrea Boriero * @author Andrea Boriero
*/ */
public class DatabaseIdentifier extends Identifier { public class DatabaseIdentifier extends Identifier {
/**
* Constructs a datatabase identifier instance.
* It is assumed that <code>text</code> is unquoted.
*
* @param text The identifier text.
*/
protected DatabaseIdentifier(String text) { protected DatabaseIdentifier(String text) {
super( text ); super( text );
} }
/**
* Constructs a datatabase identifier instance.
*
* @param text The identifier text.
*/
public static DatabaseIdentifier toIdentifier(String text) { public static DatabaseIdentifier toIdentifier(String text) {
if ( StringHelper.isEmpty( text ) ) { if ( StringHelper.isEmpty( text ) ) {
return null; return null;