Index: django/core/management.py
===================================================================
--- django/core/management.py	(revision 3124)
+++ django/core/management.py	(working copy)
@@ -331,7 +331,9 @@
     # Some backends can't execute more than one SQL statement at a time,
     # so split into separate statements.
     sql_expr = re.compile(
-        r"""(           # each statement is...
+        r"""(           # each statement...
+        (?:[^\n\r;])    # starts with something other than \n, \r, 
+                        #    or end statement, then has...
         (?:             # one or more chunks of ...
             (?:[^;'"]+) # not the end of a statement or start of a quote
           | (?:'[^']*') # something in single quotes
