Re: C text to string issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sam Stephens" <tangent(at)inspire(dot)net(dot)nz>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C text to string issue
Date: 2004-08-16 14:34:25
Message-ID: 13240.1092666865@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"Sam Stephens" <tangent(at)inspire(dot)net(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2004-08-17 02:45:52 Re: Type implemented in plpythonu crashes backend
Previous Message Sam Stephens 2004-08-16 10:22:00 C text to string issue