Re: Psycopg 2.5 released

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: Psycopg 2.5 released
Дата
Msg-id CA+mi_8ZKBeLzvqZghdue41BcRarDBHkVKGa9PwmWVsJk-TBcUQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Psycopg 2.5 released  (Julian <tempura@internode.on.net>)
Список psycopg
On Mon, Apr 8, 2013 at 1:57 AM, Julian <tempura@internode.on.net> wrote:

> Hi,
> Just an observation on your sites release notes:
>
> "when the connection block exits normally the current transaction is
> committed, if it exits with an exception instead the transaction is
> rolled back, *in either case the connection is closed*."
>
> Its not what I prefer, I went and checked anyway and it appears it
> doesn't (close the connection for either commit or rollback).

I think you are right: the connection is *NOT* closed after the with
block. Will fix the article, thank you very much.

-- Daniele


В списке psycopg по дате отправления:

Предыдущее
От: Julian
Дата:
Сообщение: Best practice for managing connections?
Следующее
От: Michael van Tellingen
Дата:
Сообщение: Re: Psycopg 2.5 released