Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2015 -- Fixed sqlinitialdata regexp to handle empty string ins…

…ertions. Thanks, Steven Armstrong

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d3b1a9ba3923848e35152f5826e6967a85be9468 1 parent 037f8d5
Adrian Holovaty authored May 30, 2006

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

  1. 4  django/core/management.py
4  django/core/management.py
@@ -334,8 +334,8 @@ def get_sql_initial_data_for_model(model):
334 334
         r"""(           # each statement is...
335 335
         (?:             # one or more chunks of ...
336 336
             (?:[^;'"]+) # not the end of a statement or start of a quote
337  
-          | (?:'[^']+') # something in single quotes
338  
-          | (?:"[^"]+") # something in double quotes
  337
+          | (?:'[^']*') # something in single quotes
  338
+          | (?:"[^"]*") # something in double quotes
339 339
         )+)""", re.VERBOSE)
340 340
 
341 341
     # Find custom SQL, if it's available.

0 notes on commit d3b1a9b

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