problem with copy_expert on cursor

From: "Eric Snow" <esnow(at)verio(dot)net>
To: <psycopg(at)postgresql(dot)org>
Subject: problem with copy_expert on cursor
Date: 2011-03-02 21:20:34
Message-ID: D2F744D05ED19D45A4A7757F49274A8B0416F788@IAD-WPRD-XCHB01.corp.verio.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

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 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.

Responses

Browse psycopg by date

  From Date Subject
Next Message Eric Snow 2011-03-02 23:19:20 Re: problem with copy_expert on cursor
Previous Message Daniele Varrazzo 2011-03-01 22:56:58 Re: gmpy adapter