[patch] syncdb bug with importing initial sql data
If you have a multiline SQL data for initial data import you can have You can only execute one statement at a time error when using syncdb command.
Attached patch fixes this and also add SQL statement in which error has occurred to error report.
Change History
(6)
by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 20 years ago
| Component: |
Core framework → Tools
|
| Summary: |
[pathc] syncdb bug with importing initial sql data → [patch] syncdb bug with importing initial sql data
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
Also, I think that it's worth to note in the documentation for
syncdbthat you must quote a bare%inside SQL statements (as a%%), because failing to do that will produce anot enough arguments for format stringerror.