pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mauri Sahlberg <mos@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: plpgsql: Bush becomes a null,
Date: Thu, 28 Aug 2003 21:57:36 +0300 (EEST)
Message-ID: <1824.10.0.0.10.1062097056.squirrel@www.claymountain.com> (raw)
In-Reply-To: <10442.1062077597@sss.pgh.pa.us>
References: <1062056068.19315.24.camel@taekwondo.intra.pretax.net>
	<10442.1062077597@sss.pgh.pa.us>

Thank you very much. Also thanks for Josh.

I have to say that I'm really impressed with the speed of this list and
dedication of the people who develop postgres.

Twice I have asked a question on this list and twice I've got absolutely
correct answer in less than one day - even when both of my questions have
been kind of RTFM questions, had I just thought them out!

The only two places I've got answers so fast have been Datavision and
Inetd-software.

> Mauri Sahlberg <Mauri.Sahlberg@claymountain.com> writes:
>> If the following is executed in context, where the dynamic query returns
>> data with every iteration everythin goes fine. If the the dynamic query
>> returns nothing - bush becomes null and everything fails. I do not
>> undestand why bush becomes null when the query returns nothing.
>
> If "latest" is null then the result of the series of concatenations is
> also null.  Perhaps what you really want is to assign to "latest" inside
> the inner FOR-loop.
>
> 			regards, tom lane
>
>




Message-ID: <1824.10.0.0.10.1062097056.squirrel@www.claymountain.com>
Permalink:  ../1824.10.0.0.10.1062097056.squirrel@www.claymountain.com/
Also on:    postgresql.org/message-id/1824.10.0.0.10.1062097056.squirrel@www.claymountain.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-admin@postgresql.org
  Cc: mos@iki.fi, tgl@sss.pgh.pa.us
  Subject: Re: plpgsql: Bush becomes a null,
  In-Reply-To: <1824.10.0.0.10.1062097056.squirrel@www.claymountain.com>
  References: <1062056068.19315.24.camel@taekwondo.intra.pretax.net> <10442.1062077597@sss.pgh.pa.us> <1824.10.0.0.10.1062097056.squirrel@www.claymountain.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