﻿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
12415	wrong parsing of SQL comments in initial SQL data	samlowry	nobody	"Function custom_sql_for_model in core/management/sql.py incorrectly cut SQL comments - without considering to a query context. For example, function cuts end of such query:


{{{
INSERT INTO `table` (`description`) VALUES ('Come play on our boat -- On the Water');
}}}


It's because of a very simple regexp at line 187:

{{{
statement = re.sub(ur""^--.*([\n\Z]|$)"", """", statement)
}}}
"		closed	Core (Management commands)	1.1		duplicate			Unreviewed	0	0	0	0	0	0
