Re: results via pgAdmin but not via psycopg2

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: psycopg(at)postgresql(dot)org
Subject: Re: results via pgAdmin but not via psycopg2
Date: 2013-12-31 13:09:58
Message-ID: 20131231130958.GB4567@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Tue, Dec 31, 2013 at 12:52:51PM +0000, Krystian Samp wrote:

> Thank you so much, this was the problem indeed, and “connection.commit()” solved it.
>
> Didn’t think about committing after a SELECT command.

If you want to spare the commit you may want to look at statement_timestamp();

Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Krystian Samp 2013-12-31 13:14:30 Re: results via pgAdmin but not via psycopg2
Previous Message Krystian Samp 2013-12-31 12:52:51 Re: results via pgAdmin but not via psycopg2