From: | "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu> |
---|---|
To: | Jeroen van Vianen <jeroenv(at)design(dot)nl> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] User-defined functions with NULL values and sets as parameter and/or return type |
Date: | 1998-02-05 02:38:16 |
Message-ID: | 34D92617.78A8BEC3@alumni.caltech.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> 1. How do I return a NULL value from a function. In fmgr.c I found out
> that only the C-function with 1 parameter has an additional parameter
> &isNull which might be used to set the return value to a SQL NULL value.
> Why not for functions with more paramaters?
For functions which return a pointer, why not just check for a null
pointer? At the moment, returning a null pointer crashes the backend, but
it would seem to be fairly easy to fix since it sort-of handles null
returns as you found.
I was planning on looking at this someday, but am far away from getting to
it. It's all yours :)
> Please let me know if you have any information that I can use.
> If you want me to elaborate some more on Illustra's API (which is quite
> good on implementing sets except for naming conventions) please let me
> know.
I'd be interested in knowing more about Illustra's features. Since we are
starting with v6.3 testing and bug fixing, you might want to bring this up
again in ~3 weeks to get more of a response...
- Tom
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-02-05 03:27:18 | Re: new yacc problem |
Previous Message | Thomas G. Lockhart | 1998-02-05 02:25:02 | Re: [HACKERS] Error in select |