| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | "scotty(at)linuxtime(dot)it" <scotty(at)linuxtime(dot)it> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: return varchar from C function |
| Date: | 2007-02-18 15:08:55 |
| Message-ID: | 20070218150855.GB6828@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sun, Feb 18, 2007 at 12:56:08PM -0500, scotty(at)linuxtime(dot)it wrote:
> Hi,
> just for fun, I wrote a little postgresql contrib,
> who has a C function called myfun inside it.
> The function myfun returns a value , now I return
> a cstring type value, and it works fine if
> I run from psql shell:
You don't provide the definition you used, but:
> select value from myfun(paramteres);
This isn't the usual way to return things, unless it is a set returning
function. Did you provide the return type at declaration time?
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2007-02-18 15:38:16 | Re: return varchar from C function |
| Previous Message | Gregory Stark | 2007-02-18 15:01:49 | Re: return varchar from C function |