HHH-16304 Default unquotedCaseStrategy to MIXED with Sybase

This commit is contained in:
Christian Beikov 2023-04-26 16:13:05 +02:00
parent 79adaefb7c
commit de70033710
1 changed files with 2 additions and 1 deletions

View File

@ -361,8 +361,9 @@ public class SybaseDialect extends AbstractTransactSQLDialect {
@Override @Override
public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData) public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData)
throws SQLException { throws SQLException {
if ( dbMetaData == null ) { // Default to MIXED because the jconn driver doesn't seem to report anything useful
builder.setUnquotedCaseStrategy( IdentifierCaseStrategy.MIXED ); builder.setUnquotedCaseStrategy( IdentifierCaseStrategy.MIXED );
if ( dbMetaData == null ) {
builder.setQuotedCaseStrategy( IdentifierCaseStrategy.MIXED ); builder.setQuotedCaseStrategy( IdentifierCaseStrategy.MIXED );
} }