Re: C text to string issue - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: C text to string issue
Date
Msg-id 13240.1092666865@sss.pgh.pa.us
Whole thread Raw
In response to C text to string issue  ("Sam Stephens" <tangent@inspire.net.nz>)
List pgsql-interfaces
"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


pgsql-interfaces by date:

Previous
From: "Sam Stephens"
Date:
Subject: C text to string issue
Next
From: Bruce Momjian
Date:
Subject: Re: Type implemented in plpythonu crashes backend