SystemError: null argument to internal routine - Mailing list psycopg

From Eric Snow
Subject SystemError: null argument to internal routine
Date
Msg-id D2F744D05ED19D45A4A7757F49274A8B0416F88D@IAD-WPRD-XCHB01.corp.verio.net
Whole thread Raw
In response to Re: problem with copy_expert on cursor  ("Eric Snow" <esnow@verio.net>)
Responses Re: SystemError: null argument to internal routine
List psycopg
I am trying to figure out the conditions under which I get that
SystemError.  Here is a simple way that I found to reproduce the
problem:

>>> import psycopg2
>>> psycopg2.__version__
'2.3.2 (dt dec pq3 ext)'
>>> conn = psycopg2.connect("...")
>>> cur = conn.cursor()
>>> cur.execute(";")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
SystemError: null argument to internal routine

I am getting the same exception during a call to copy_expert.  How would
the data I pass in there trigger the same exception as when I pass a
single semicolon?  I am guessing that it does not even make it over the
wire to the postgres server when the exception is raised.  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 by date:

Previous
From: "Eric Snow"
Date:
Subject: Re: problem with copy_expert on cursor
Next
From: Jan Urbański
Date:
Subject: Re: SystemError: null argument to internal routine