Re: problem with copy_expert on cursor

Поиск
Список
Период
Сортировка
От Eric Snow
Тема Re: problem with copy_expert on cursor
Дата
Msg-id D2F744D05ED19D45A4A7757F49274A8B0416F7A7@IAD-WPRD-XCHB01.corp.verio.net
обсуждение исходный текст
Ответ на problem with copy_expert on cursor  ("Eric Snow" <esnow@verio.net>)
Ответы Re: problem with copy_expert on cursor
Список psycopg
If my StringIO object gets a MemoryError, will the cursor's copy_expert
handle that, or is that the SystemError I am seeing?  Thanks.

-eric

-----Original Message-----
From: Eric Snow
Sent: Wednesday, March 02, 2011 2:21 PM
To: 'psycopg@postgresql.org'
Subject: problem with copy_expert on cursor

What would cause the following error when I call copy_expert on a
DictCursor?

    SystemError: 'null argument to internal routine'

The sql I pass in is the copy, in a string.  The file is a
cStringIO.StringO object.  I am using a custom row factory on the
DictCursor.  So there are a number of things that could be the source of
the error.  However, I am not familiar enough with psycopg to dig this
out.

Incidently, the problem is actually when I am using skytools for
replication, and not actually in any code I have written.  I am using
psycopg2 2.3.2.  Thanks.

-eric


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 по дате отправления:

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