pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rod Taylor <pg@rbt.ca>
Cc: patkins <patkins@killinglyschools.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Procedure failing after upgrade
Date: Wed, 05 May 2004 15:46:07 -0400
Message-ID: <9346.1083786367@sss.pgh.pa.us> (raw)
In-Reply-To: <1083779396.60668.10.camel@jester>
References: <20040504133209.3EC83D1CAB0@svr1.postgresql.org>
	<1083779396.60668.10.camel@jester>

Rod Taylor <pg@rbt.ca> writes:
> an interesting error. It appears as if the integer array type is being
> confused for a boolean.

Up till 7.4, plpgsql's control statements didn't actually check whether
the given expression returned boolean :-(.  They just assumed that the
resulting Datum should be interpreted as a bool.  7.4 will coerce to
bool or throw an error if it can't.

			regards, tom lane



view thread (4+ messages)

Message-ID: <9346.1083786367@sss.pgh.pa.us>
Permalink:  ../9346.1083786367@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9346.1083786367@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@rbt.ca, patkins@killinglyschools.org
  Subject: Re: Procedure failing after upgrade
  In-Reply-To: <9346.1083786367@sss.pgh.pa.us>

* 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