From: | "Eric Snow" <esnow(at)verio(dot)net> |
---|---|
To: | "Daniele Varrazzo" <daniele(dot)varrazzo(at)gmail(dot)com> |
Cc: | <psycopg(at)postgresql(dot)org> |
Subject: | Re: problem with copy_expert on cursor |
Date: | 2011-03-03 00:34:06 |
Message-ID: | D2F744D05ED19D45A4A7757F49274A8B0416F7AF@IAD-WPRD-XCHB01.corp.verio.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
Awesome! Thanks, Daniele.
-eric
-----Original Message-----
From: Daniele Varrazzo [mailto:daniele(dot)varrazzo(at)gmail(dot)com]
Sent: Wednesday, March 02, 2011 5:29 PM
To: Eric Snow
Cc: psycopg(at)postgresql(dot)org
Subject: Re: [psycopg] problem with copy_expert on cursor
On Wed, Mar 2, 2011 at 11:19 PM, Eric Snow <esnow(at)verio(dot)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 confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you.
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Snow | 2011-03-03 19:52:54 | SystemError: null argument to internal routine |
Previous Message | Daniele Varrazzo | 2011-03-03 00:28:44 | Re: problem with copy_expert on cursor |