Re: postgesql commit problem?

2007-03-16 Thread Joseph Heck
Try: transaction.commit_unless_managed() I originally found it in the django scripts code ( http://code.djangoproject.com/browser/django/trunk/django/bin/daily_cleanup.py), and it forces a commit when you're not under transaction management. I never found any references to it in the

Re: postgesql commit problem?

2007-03-14 Thread omat * gezgin.com
By the way, when I try to commit using transaction.commit(), I get a TransactionManagementError saying "This code isn't under transaction management", which makes sense, as the cursor is not in a transaction context. On 14 Mart, 17:36, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote: > I am

postgesql commit problem?

2007-03-14 Thread omat * gezgin.com
I am trying to run a custom insert sql on postgres db, but the command does not seem to commit. I searched through this list and saw that there are unresolved discussions like: http://groups.google.com/group/django-users/browse_thread/thread/65adbdfa9bc92a7b/ Following the examples in the