Re: problem with copy_expert on cursor
От | Eric Snow |
---|---|
Тема | Re: problem with copy_expert on cursor |
Дата | |
Msg-id | D2F744D05ED19D45A4A7757F49274A8B0416F7AF@IAD-WPRD-XCHB01.corp.verio.net обсуждение исходный текст |
Ответ на | Re: problem with copy_expert on cursor (Daniele Varrazzo <daniele.varrazzo@gmail.com>) |
Ответы |
SystemError: null argument to internal routine
|
Список | psycopg |
Awesome! Thanks, Daniele. -eric -----Original Message----- From: Daniele Varrazzo [mailto:daniele.varrazzo@gmail.com] Sent: Wednesday, March 02, 2011 5:29 PM To: Eric Snow Cc: psycopg@postgresql.org Subject: Re: [psycopg] problem with copy_expert on cursor 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 This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidentialor legally protected. If you are not the intended recipient or have received this message in error, you are notauthorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediatelyby return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that thisemail is error or virus free. Thank you.
В списке psycopg по дате отправления: