On 2012-06-26, Steve Rogerson <steve (AT) nemodtcwey (DOT) co.uk> wrote:
Quote:
and I'm going a db conversion that is taking an existing part1 value and based
on it, creating a my_type with a compiuted part2. I have a function to do it
like ... |
....
Quote:
The problem is that if part1 is null I get (,), that is a non-null thing that
has each of it's parts null. I really really want to return "true" null rather
then "composite" null. Has anyone any ideas? |
1: your example code has obvious errors (won't run)
2: furthermore
you can't test for null using "="
IF part1 IS NULL
works for me.
3: Alternatively have you tried declaring the function as
"RETURNS NULL ON NULL INPUT"
--
⚂⚃ 100% natural
--- Posted via news://freenews.netfront.net/ - Complaints to news (AT) netfront (DOT) net ---