- Mailing list pgsql-general

From andrew.wan@nu-net.com
Subject
Date
Msg-id OF50FCCC7D.1231833E-ON852569DE.0078554F@nyc.nu-net.com
Whole thread Raw
List 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


pgsql-general by date:

Previous
From: "Felix König"
Date:
Subject: Trouble porting postgreSQL to WinNT
Next
From: Emmanuel Charpentier
Date:
Subject: Re: Calculated values