Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group