pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Graham Vickrage <graham@digitalplanit.com>
To: postgresql <pgsql-sql@postgresql.org>
Subject: Null function parameters
Date: Tue, 22 Aug 2000 16:37:09 +0100
Message-ID: <NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com> (raw)

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





view thread (7+ messages)  latest in thread

Message-ID: <NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com>
Permalink:  ../NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com/
Also on:    postgresql.org/message-id/NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: graham@digitalplanit.com
  Subject: Re: Null function parameters
  In-Reply-To: <NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com>
  References: <NDBBJABDILOPAOOMFJHOOEAKCEAA.graham@digitalplanit.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox