mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Fixed #21866 -- Replaced "COMMIT" in managmement command SQL with backend hook.
This commit is contained in:
parent
2b154ae280
commit
8f2f48ecc9
@ -344,7 +344,7 @@ class BaseCommand(object):
|
||||
self.stdout.write(self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()))
|
||||
self.stdout.write(output)
|
||||
if self.output_transaction:
|
||||
self.stdout.write('\n' + self.style.SQL_KEYWORD("COMMIT;"))
|
||||
self.stdout.write('\n' + self.style.SQL_KEYWORD(connection.ops.end_transaction_sql()))
|
||||
finally:
|
||||
if saved_locale is not None:
|
||||
translation.activate(saved_locale)
|
||||
|
Loading…
Reference in New Issue
Block a user