[jOOQ/jOOQ#16999] Reset also new caches when adding synthetic keys

This commit is contained in:
Lukas Eder 2024-07-31 18:33:33 +02:00
parent d792494e78
commit c7d2f2ec92

View File

@ -144,7 +144,11 @@ public class DefaultRelations implements Relations {
// Remove the existing key from the column -> key mapping
primaryKeysByColumn = null;
uniqueKeysByColumn = null;
uniqueKeysByTable = null;
keysByColumn = null;
keysByTable = null;
foreignKeysByColumn = null;
foreignKeysByTable = null;
// Remove the existing key from the primary key mapping (not from the unique key mapping!)
Iterator<Entry<Key, UniqueKeyDefinition>> it = primaryKeys.entrySet().iterator();