mirror of https://github.com/django/django.git
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(self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()))
|
||||||
self.stdout.write(output)
|
self.stdout.write(output)
|
||||||
if self.output_transaction:
|
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:
|
finally:
|
||||||
if saved_locale is not None:
|
if saved_locale is not None:
|
||||||
translation.activate(saved_locale)
|
translation.activate(saved_locale)
|
||||||
|
|
Loading…
Reference in New Issue