﻿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
4680	"Fixes problem in initial_sql where ""--"" is in a string"	Tim Chase	anonymous	"In the core/management.py get_custom_sql_for_model() function, if the initial SQL has a ""--"" in a string, it chokes.

The attached diff should fix the problem.  Test cases:

select '--' as foo; -> select '--' as foo;[[BR]]
select '--' as foo; -- select stuff -> select '--' as foo; [[BR]]
select '--' as foo; -- select stuff -- because I want to -> select '--' as foo; [[BR]]
select * foo; -- select stuff -- because I want to -> select * foo; [[BR]]
select * foo; -- select stuff -> select * foo; 

"	Bug	closed	Core (Management commands)	dev	Normal	fixed	initial-sql manage.py sprintdec01	code.djangoproject@… claude@…	Ready for checkin	1	0	0	0	0	0
