#8461: manage.py reset crashes running initial SQL if there's a #comment on the
same line as valid SQL
---------------------------------------+------------------------------------
Reporter: niccl | Owner: nobody
Status: new | Milestone:
Component: django-admin.py runserver | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 1 |
---------------------------------------+------------------------------------
manage.py reset can run initial SQL. If this SQL has valid SQL at the
start, followed by a # comment, then it will fail with
{{{_mysql_exceptions.ProgrammingError: (2014, "Commands out of sync; you
can't run this command now")}}}
It fails because the regex in sql.py doesn't check for '# comment' when
parsing the SQL file. '# comment' is valid in (at least) MySQL.
--
Ticket URL: <http://code.djangoproject.com/ticket/8461>
Django Code <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
-~----------~----~----~----~------~----~------~--~---