Skip to content

Commit

Permalink
Fixed the ugly spacing of 'BEGIN;' and 'COMMIT;' in the output of the…
Browse files Browse the repository at this point in the history
… sql/sqlall commands. They're no longer smooshed with the rest of the SQL.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Oct 6, 2010
1 parent e3b95aa commit 40765f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/core/management/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ def execute(self, *args, **options):
from django.db import connections, DEFAULT_DB_ALIAS
connection = connections[options.get('database', DEFAULT_DB_ALIAS)]
if connection.ops.start_transaction_sql():
self.stdout.write(self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()))
self.stdout.write(self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()) + '\n')
self.stdout.write(output)
if self.output_transaction:
self.stdout.write(self.style.SQL_KEYWORD("COMMIT;") + '\n')
self.stdout.write('\n' + self.style.SQL_KEYWORD("COMMIT;") + '\n')
except CommandError, e:
self.stderr.write(smart_str(self.style.ERROR('Error: %s\n' % e)))
sys.exit(1)
Expand Down

0 comments on commit 40765f1

Please sign in to comment.