[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: using postgres functions for domain tables Peter Wed Feb 22 16:00:42 2012

On 23/02/12 05:30, Matthias Leopold wrote:
> how do i make a postgres plperl function return a value/row only when
> certain conditions are met and otherwise return "nothing"/void/0 rows?
> right now my function returns "1 row" even when i return undef.

Have you tried using your function in the WHERE clause of your SQL query?