From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sam Stephens <tangent@inspire.net.nz>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: C text to string issue
Date: Mon, 16 Aug 2004 10:34:25 -0400
Message-ID: <13240.1092666865@sss.pgh.pa.us> (raw)
In-Reply-To: <41213388.2171.2E01748@localhost>
References: <41213388.2171.2E01748@localhost>
"Sam Stephens" <tangent@inspire.net.nz> writes:
> PG_FUNCTION_INFO_V1(f_qpsolve);
> text * f_qpsolve(text *arg)
> {
This function is not written according to the V1 calling convention.
Either rewrite it or remove the INFO_V1 macro.
> return 0;
You most certainly do not want to return a null "text *" pointer.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, tangent@inspire.net.nz
Subject: Re: C text to string issue
In-Reply-To: <13240.1092666865@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox