Re: problem with copy_expert on cursor

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: problem with copy_expert on cursor
Дата
Msg-id AANLkTi=56stUx-QBEa8mf3gGgz8p2_nUX0ssqg-PWePb@mail.gmail.com
обсуждение исходный текст
Ответ на Re: problem with copy_expert on cursor  ("Eric Snow" <esnow@verio.net>)
Ответы Re: problem with copy_expert on cursor
Список psycopg
On Wed, Mar 2, 2011 at 11:19 PM, Eric Snow <esnow@verio.net> wrote:
> If my StringIO object gets a MemoryError, will the cursor's copy_expert
> handle that, or is that the SystemError I am seeing?  Thanks.

I assume you are writing into the StringIO. Yes, it should be handled
(https://github.com/dvarrazzo/psycopg/blob/2_3_2/psycopg/pqpath.c#L1162):
if write() returns a MemoryError the function bails out with the
exception set by write() itself.

-- Daniele

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

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: problem with copy_expert on cursor
Следующее
От: "Eric Snow"
Дата:
Сообщение: Re: problem with copy_expert on cursor