pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau ☭ <twanger@bluetwanger.de>
Cc: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: 'PostgreSQL' <pgsql-sql@postgresql.org>
Subject: Re: 'true'::TEXT::BOOLEAN
Date: Fri, 03 Jun 2005 09:47:11 -0400
Message-ID: <4300.1117806431@sss.pgh.pa.us> (raw)
In-Reply-To: <1117799555.9816.24.camel@dicaprio.akademie1.de>
References: <Pine.LNX.4.44.0506031420340.23350-100000@matrix.gatewaynet.com>
	<1117799555.9816.24.camel@dicaprio.akademie1.de>

Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <twanger@bluetwanger.de> writes:
> Well, that's not my question. I have a plpgsql function like that:
> ...
> And I can't call it with a TEXT variable, because casting from TEXT to
> BOOLEAN isn't possible.

In plpgsql it is: just assign the text value to a boolean variable.
plpgsql's notions of type safety are pretty lax ;-)

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <4300.1117806431@sss.pgh.pa.us>
Permalink:  ../4300.1117806431@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4300.1117806431@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, twanger@bluetwanger.de, achill@matrix.gatewaynet.com
  Subject: Re: 'true'::TEXT::BOOLEAN
  In-Reply-To: <4300.1117806431@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