manage.py reset fails to handle valid sql file
|Reported by:||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||0.95|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've got an SQL file to populate the database in my camps/sql directory.
Using "python manage.py dbshell", I can then source this sql file and it runs fine, correctly populating the database.
If I run "python manage.py reset camps", though, I get this error :
Error: camps couldn't be installed. Possible reasons:
- The database isn't running or isn't configured correctly.
- At least one of the database tables already exists.
- The SQL was invalid.
Hint: Look at the output of 'django-admin.py sqlreset camps'. That's the SQL this command wasn't able to run.
The full error: not enough arguments for format string
It looks like the final "INSERT INTO..." statement is not being parsed correctly somewhere, I think...
"python manage.py sqlreset camps" runs ok and produces a stack of SQL.
I can provide the sql file, but there doesn't seem to be any way to attach it to this ticket, and it's fairly large (>3000 lines).