Ticket #2161: blanklines.diff

File blanklines.diff, 764 bytes (added by Russell Keith-Magee, 18 years ago)

Fixed regex to eliminate blank lines from initial SQL

  • django/core/management.py

     
    331331    # Some backends can't execute more than one SQL statement at a time,
    332332    # so split into separate statements.
    333333    sql_expr = re.compile(
    334         r"""(           # each statement is...
     334        r"""(           # each statement...
     335        (?:[^\n\r;])    # starts with something other than \n, \r,
     336                        #    or end statement, then has...
    335337        (?:             # one or more chunks of ...
    336338            (?:[^;'"]+) # not the end of a statement or start of a quote
    337339          | (?:'[^']*') # something in single quotes
Back to Top