I feel like this is a simple question, yet I haven't been able to
solve it at 5am :)

I'm trying to delete through a cursor like this:

    from django.db import models, connection, transaction

    cursor = connection.cursor()
    cursor.execute( query )

But it appears to not be committing. I suspect this because the change
doesn't register, and when I try to do the same delete from the
postgres command line, it doesn't complete until I close python (so i
figure it is releasing a lock or something).

Ok, just solved it actually...
I looked in the db wrapping and tried calling connection._commit().
Since its a private attribute, I assume I'm doing something wrong
though. Is that the case?

Thanks,
Steve

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to