Null function parameters

From: "Graham Vickrage" <graham(at)digitalplanit(dot)com>
To: "postgresql" <pgsql-sql(at)postgresql(dot)org>
Subject: Null function parameters
Date: 2000-08-22 15:37:09
Message-ID: NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi All,

I am trying to create a function that takes an int as its param and insert
the value into a table. The problem occurs when the value passed is NULL,
the error message returned is

- Execute failed ERROR: ExecAppend: Fail to add null value in not null
attribute type

However my understanding was that if the default value is SQL NULL then any
values passed into the function that are null would be treated as 'NULL'.

This doesn't seem to be the case. Chances are I am overlooking something,
could any one point me in the right direction?

Cheers

Graham

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2000-08-22 15:59:29 Re: Continuous inserts...
Previous Message Tom Lane 2000-08-22 15:03:53 Re: tip: weird parse error for pl/pgsql