0
0
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:
Wojciech Banaś 2014-01-24 00:04:47 +01:00 committed by Tim Graham
parent 2b154ae280
commit 8f2f48ecc9

View File

@ -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)