Willy De la Court <Willy(dot)DelaCourt(at)pandora(dot)be> writes:
> you are right tom with the NULLs but I think I found an elegant
> solution to this
Interesting; I didn't realize that plpgsql supported functions returning
NULLs.
I wouldn't call it an "elegant" solution, by any means ;-). But if it
gets the job done for you, it'll do as a stopgap until datein() can
return a NULL itself.
regards, tom lane