SystemError: null argument to internal routine

From: "Eric Snow" <esnow(at)verio(dot)net>
To: <psycopg(at)postgresql(dot)org>
Subject: SystemError: null argument to internal routine
Date: 2011-03-03 19:52:54
Message-ID: D2F744D05ED19D45A4A7757F49274A8B0416F88D@IAD-WPRD-XCHB01.corp.verio.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 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.

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Jan Urbański 2011-03-03 20:02:01 Re: SystemError: null argument to internal routine
Previous Message Eric Snow 2011-03-03 00:34:06 Re: problem with copy_expert on cursor