Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

psycopg by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group