mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 03:38:16 +00:00
HHH-14667 Skip loading all keywords from the DB when keyword auto-quoting is disabled
This commit is contained in:
parent
fd35857284
commit
c10493435e
@ -61,6 +61,10 @@ public void applyReservedWords(DatabaseMetaData metaData) throws SQLException {
|
||||
return;
|
||||
}
|
||||
|
||||
//Important optimisation: skip loading all keywords from the DB when autoQuoteKeywords is disabled
|
||||
if ( autoQuoteKeywords == false ) {
|
||||
return;
|
||||
}
|
||||
this.reservedWords.addAll( parseKeywords( metaData.getSQLKeywords() ) );
|
||||
}
|
||||
|
||||
@ -176,6 +180,10 @@ public void clearReservedWords() {
|
||||
}
|
||||
|
||||
public void applyReservedWords(Set<String> words) {
|
||||
//No use when autoQuoteKeywords is disabled
|
||||
if ( autoQuoteKeywords == false ) {
|
||||
return;
|
||||
}
|
||||
this.reservedWords.addAll( words );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user