﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3233	manage.py reset fails to handle valid sql file	chris_brand@…	nobody	"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).
"	defect	closed	Core (Management commands)	0.95	normal	wontfix	dev@simon.net.nz		Accepted	0	0	0	0	0	0
