Skip to content

Commit b3a8453

Browse files
committed
HHH-10014 - Adjust default for hibernate.auto_quote_keyword to false
1 parent f8b523f commit b3a8453

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect d
7878

7979
final IdentifierHelperBuilder identifierHelperBuilder = IdentifierHelperBuilder.from( this );
8080
identifierHelperBuilder.setGloballyQuoteIdentifiers( globalQuoting( cfgService ) );
81-
identifierHelperBuilder.setAutoQuoteKeywords( autoQuoting( cfgService ) );
81+
identifierHelperBuilder.setAutoQuoteKeywords( autoKeywordQuoting( cfgService ) );
8282
identifierHelperBuilder.setNameQualifierSupport( nameQualifierSupport );
8383

8484
IdentifierHelper identifierHelper = null;
@@ -114,11 +114,11 @@ private static boolean globalQuoting(ConfigurationService cfgService) {
114114
);
115115
}
116116

117-
private static boolean autoQuoting(ConfigurationService cfgService) {
117+
private static boolean autoKeywordQuoting(ConfigurationService cfgService) {
118118
return cfgService.getSetting(
119119
AvailableSettings.KEYWORD_AUTO_QUOTING_ENABLED,
120120
StandardConverters.BOOLEAN,
121-
true
121+
false
122122
);
123123
}
124124

@@ -218,7 +218,7 @@ public JdbcEnvironmentImpl(
218218

219219
final IdentifierHelperBuilder identifierHelperBuilder = IdentifierHelperBuilder.from( this );
220220
identifierHelperBuilder.setGloballyQuoteIdentifiers( globalQuoting( cfgService ) );
221-
identifierHelperBuilder.setAutoQuoteKeywords( autoQuoting( cfgService ) );
221+
identifierHelperBuilder.setAutoQuoteKeywords( autoKeywordQuoting( cfgService ) );
222222
identifierHelperBuilder.setNameQualifierSupport( nameQualifierSupport );
223223
IdentifierHelper identifierHelper = null;
224224
try {

0 commit comments

Comments
 (0)