pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerhard Dieringer <DieringG@eba-haus.de>
To: pgsql-sql@postgresql.org
Cc: " <Skeets and Kim Norquist" <norqu2@juno.com>
Subject: Antw: plpgsql function gets wierd with Null parameters
Date: Mon, 03 Jul 2000 09:42:54 +0200
Message-ID: <s960603b.071@kopo001> (raw)


Skeets Norquist wrote:

> When I call the following plpgsql function with the last two parameters
> as Null, the first parameter loses it's value:
>   ma=> select createFund('fred', null, null);
> ...    
> However it works fine when I give values to the last two params:
>   ma=> select createFund('fred', 'joe', 5);
> ...

It's a known bug of plpgsql that if one arg is NULL, all other args are also assumed to be NULL. 
I think (hope) this will be fixed in a future version.

Gerhard





view thread (2+ messages)  latest in thread

Message-ID: <s960603b.071@kopo001>
Permalink:  ../s960603b.071@kopo001/
Also on:    postgresql.org/message-id/s960603b.071@kopo001

 · 

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: DieringG@eba-haus.de, Skeets and Kim Norquist" <norqu2@juno.com
  Subject: Re: plpgsql function gets wierd with Null parameters
  In-Reply-To: <s960603b.071@kopo001>
  References: <s960603b.071@kopo001>

* 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