Ticket #1935: patch-initial_sql_regex

File patch-initial_sql_regex, 575 bytes (added by anonymous, 19 years ago)
Line 
1Index: management.py
2===================================================================
3--- management.py (revision 3137)
4+++ management.py (working copy)
5@@ -339,7 +339,7 @@
6 (?:[^;'"]+) # not the end of a statement or start of a quote
7 | (?:'[^']*') # something in single quotes
8 | (?:"[^"]*") # something in double quotes
9- )+)""", re.VERBOSE)
10+ )+;?\n?)""", re.VERBOSE)
11
12 # Find custom SQL, if it's available.
13 sql_files = [os.path.join(app_dir, "%s.%s.sql" % (opts.object_name.lower(), settings.DATABASE_ENGINE)),
Back to Top