#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]>):
IMHO the sql file should be just fed all at once to a cursor, rather than
django attempting to parse it and feeding in pieces.
The python DB API 2.0 doc is a bit hazy on this point, but:
{{{
>>> cursor.execute( "create table a ( id int ); insert into a ( id )
values ( 1 ); select * from a;" )
>>> cursor.fetchall()
[(1,)]
}}}
seems to show that multiple statements count as one "operation", at least
using postgresql_psycopg2
- Shaun
--
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
-~----------~----~----~----~------~----~------~--~---