HHH-9057 Correct ObjectNameNormalizer for mssql-style quoting
This commit is contained in:
parent
a972348369
commit
ea112b7712
|
@ -111,6 +111,12 @@ public abstract class ObjectNameNormalizer {
|
|||
return '`' + identifier.substring( 1, identifier.length() - 1 ) + '`';
|
||||
}
|
||||
|
||||
// Convert SQLServer style quoting
|
||||
// TODO: This really should be tied to Dialect#openQuote/closeQuote
|
||||
if ( identifier.startsWith( "[" ) && identifier.endsWith( "]" ) ) {
|
||||
return '`' + identifier.substring( 1, identifier.length() - 1 ) + '`';
|
||||
}
|
||||
|
||||
// If the user has requested "global" use of quoted identifiers, quote this identifier (using back ticks)
|
||||
// if not already
|
||||
if ( isUseQuotedIdentifiersGlobally() && ! ( identifier.startsWith( "`" ) && identifier.endsWith( "`" ) ) ) {
|
||||
|
|
Loading…
Reference in New Issue