On 2/16/06, Siah <[EMAIL PROTECTED]> wrote:
> Reading up on transaction, I figured I have to commit it, except
> cursor.commit() gives me this error:
> Error: serialized connection: cannot commit on this cursor
>
> Any ideas?
Hey Sia,
Call commit() on the connection object, not the cursor object.
cursor = db.cursor()
cursor.execute("UPDATE something...")
db.commit()
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users
-~----------~----~----~----~------~----~------~--~---