Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the ugly spacing of 'BEGIN;' and 'COMMIT;' in the output of the…

… 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...
commit 40765f1bdd6b4fc1a21ab38c2816a2fcc45618b0 1 parent e3b95aa
Adrian Holovaty authored October 06, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/core/management/base.py
4  django/core/management/base.py
@@ -225,10 +225,10 @@ def execute(self, *args, **options):
225 225
                     from django.db import connections, DEFAULT_DB_ALIAS
226 226
                     connection = connections[options.get('database', DEFAULT_DB_ALIAS)]
227 227
                     if connection.ops.start_transaction_sql():
228  
-                        self.stdout.write(self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()))
  228
+                        self.stdout.write(self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()) + '\n')
229 229
                 self.stdout.write(output)
230 230
                 if self.output_transaction:
231  
-                    self.stdout.write(self.style.SQL_KEYWORD("COMMIT;") + '\n')
  231
+                    self.stdout.write('\n' + self.style.SQL_KEYWORD("COMMIT;") + '\n')
232 232
         except CommandError, e:
233 233
             self.stderr.write(smart_str(self.style.ERROR('Error: %s\n' % e)))
234 234
             sys.exit(1)

0 notes on commit 40765f1

Please sign in to comment.
Something went wrong with that request. Please try again.