From: andrew(dot)wan(at)nu-net(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject:
Date: 2001-01-24 21:59:58
Message-ID: OF50FCCC7D.1231833E-ON852569DE.0078554F@nyc.nu-net.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,
I am trying to make a function that takes four varchar arguments as in
CREATE FUNCTION address(varchar,varchar,varchar,varchar) ...

when i try to pass the function a NULL value, it turns all the values into
NULL:
select address('foo','foo',NULL,'foo').

i also tried putting in type record(i'm not sure that this is a valid
argument type but documentation
listed it for declarations), and i tried putting in the name of a table.
none of it works.

Is there anyway to define argument type(s) that accept NULL values?
a n d r e
w

Responses

  • Re: at 2001-01-27 03:26:35 from Doug McNaught

Browse pgsql-general by date

  From Date Subject
Next Message Norman J. Clarke 2001-01-24 22:21:00 Re: MySQL has transactions
Previous Message Anand Raman 2001-01-24 21:57:41 Re: Re: backend closing connections while executing...