summaryrefslogtreecommitdiff
path: root/tests/forms_tests/widget_tests/test_fileinput.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-03 07:58:42 +0200
committerGitHub <noreply@github.com>2023-05-03 07:58:42 +0200
commit83339d2103f447377fedb3bd145b52c3ef2b667c (patch)
treedc079f7afbd811587ffd9e42073a92d09f20d9e3 /tests/forms_tests/widget_tests/test_fileinput.py
parentea53e7c09f1b8864c20c65976bbeaeab77abdaec (diff)
Fixed #34523 -- Fixed TransactionManagementError in QuerySet.update_or_create() with MyISAM storage engine.
QuerySet.update_or_create() uses nested atomic to handle possible integrity errors taking savepoints as way to mark back the connection as usable. Savepoints are not returned when uses_savepoints/can_release_savepoints feature flags are set to False. As a consequence, QuerySet.update_or_create() assumed the outer atomic block is tainted and raised TransactionManagementError. This commit partly reverts 331a460f8f2e4f447b68fba491464b68c9b21fd1. Thanks gatello-s for the report.
Diffstat (limited to 'tests/forms_tests/widget_tests/test_fileinput.py')
0 files changed, 0 insertions, 0 deletions