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: (view raw, whole thread or download thread mbox)
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:// (official repo)

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


-- 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-2017 The PostgreSQL Global Development Group