Skip to content

Commit 14af889

Browse files
committed
Include FK check/normalisation in bulk_load_context
1 parent dddc15e commit 14af889

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/orm_loader/backends/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ def bulk_load_context(
220220
try:
221221
if disable_fk:
222222
self._require_capability("supports_fk_toggle", "foreign key toggling")
223-
previous_fk_state = self.disable_fk_check(session)
223+
raw_state = self.disable_fk_check(session)
224+
previous_fk_state = self._normalize_fk_check_state(raw_state)
224225

225226
if no_autoflush:
226227
with session.no_autoflush:

0 commit comments

Comments
 (0)