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
1 changed files with 1 additions and 1 deletions

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)