Re: Fwd: autocommit linux error

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Re: Fwd: autocommit linux error
Date: 2011-07-26 11:53:06
Message-ID: CA+mi_8bC83oscK2YgR6NwXVDHStF=O-z7RMLJ_iACvpet2EJTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Tue, Jul 26, 2011 at 12:49 PM, Владимир Апарин <sinopteek(at)gmail(dot)com> wrote:

> I want to use autocommiting in my code, i wrote code, that working on windows.
> But when i try to run him on linux, i recieve error
>
> AttributeError: 'psycopg2._psycopg.connection' object has no attribute 'autocommit'
>
> system: OpenSuSe 11.4x64.
> packet python-psycopg2-2.4-1.1 from obs://build.opensuse.org/devel:languages:python (official repo)
> https://build.opensuse.org/package/show?package=python-psycopg2&project=devel%3Alanguages%3Apython

Autocommit was introduced in psycopg 2.4.2. In previous version you
have to use conn.set_isolation_level(0).

Cheers,

-- Daniele

In response to

Browse psycopg by date

  From Date Subject
Next Message Scott Rohde 2011-07-29 17:01:45 psycopg2 and python built with ucs2
Previous Message Владимир Апарин 2011-07-26 11:49:11 Fwd: autocommit linux error