| 1 |
Index: management.py |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- management.py (revision 3137) |
|---|
| 4 |
+++ management.py (working copy) |
|---|
| 5 |
@@ -337,9 +337,9 @@ |
|---|
| 6 |
r"""( # each statement is... |
|---|
| 7 |
(?: # one or more chunks of ... |
|---|
| 8 |
(?:[^;'"]+) # not the end of a statement or start of a quote |
|---|
| 9 |
- | (?:'[^']*') # something in single quotes |
|---|
| 10 |
- | (?:"[^"]*") # something in double quotes |
|---|
| 11 |
- )+)""", re.VERBOSE) |
|---|
| 12 |
+ | (?:'(?:[^']|<?=\')*') # something in single quotes |
|---|
| 13 |
+ | (?:"(?:[^"]|<?=\")*") # something in double quotes |
|---|
| 14 |
+ )+;?\n+)""", re.VERBOSE) |
|---|
| 15 |
|
|---|
| 16 |
# Find custom SQL, if it's available. |
|---|
| 17 |
sql_files = [os.path.join(app_dir, "%s.%s.sql" % (opts.object_name.lower(), settings.DATABASE_ENGINE)), |
|---|