#12415: wrong parsing of SQL comments in initial SQL data
-----------------------------+----------------------------------------------
Reporter: samlowry | Owner: nobody
Status: new | Milestone:
Component: django-admin.py | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
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)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/12415>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.