#3214: raw sql file doesn't recognize quotes correctly
------------------------------------------+---------------------------------
Reporter: shaunc <[EMAIL PROTECTED]> | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: Database wrapper | Version:
Severity: normal | Resolution:
Keywords: |
------------------------------------------+---------------------------------
Comment (by shaunc <[EMAIL PROTECTED]>):
The problem is the following, in django.core.management:341:
{{{
# Some backends can't execute more than one SQL statement at a time,
# so split into separate statements.
statements = re.compile(r";[ \t]*$", re.M)
}}}
This may be a fine workaround if the backend really doesn't deal with
multiple statements, but it breaks things that have ';' in quotes. Easiest
fix would be for the db to support a property:
"SUPPORTS_MULTIPLE_STATEMENTS_IN_EXECUTE" or whatever, and only split if
necessary.
--
Ticket URL: <http://code.djangoproject.com/ticket/3214#comment:>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---