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

This commit is contained in:
Gail Badner 2017-08-08 13:47:39 -07:00
parent 65b5e6445b
commit bb905dcb00
1 changed files with 7 additions and 5 deletions

View File

@ -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 <code>text</code> 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;