pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Geoffrey <esoteric@3times25.net>
To: pgsql-sql@postgresql.org
Subject: Re: casting BOOL to somthng
Date: Wed, 01 Sep 2004 06:25:30 -0400
Message-ID: <4135A39A.3010406@3times25.net> (raw)
In-Reply-To: <200409010955.45834.sad@bankir.ru>
References: <200408311306.25545.sad@bankir.ru>
	<200409010941.54539.sad@bankir.ru>
	<8AF2CE57-FBE1-11D8-A2A0-000A95C88220@myrealbox.com>
	<200409010955.45834.sad@bankir.ru>

sad wrote:
> On Wednesday 01 September 2004 10:38, Michael Glaesemann wrote:
> 
>>On Sep 1, 2004, at 2:41 PM, sad wrote:
>>
>>>On Wednesday 01 September 2004 09:24, Stephan Szabo wrote:
>>>
>>>>There's a fairly accepted convention for integer representations.
>>>>There's no such convention for boolean representations.
>>>
>>>then why do you print its value on a screen ?!
>>
>>Perhaps because if you don't print *something* you can't see it?
> 
> 
> since you printed it you poke a convention (of casting to string)
> 
> if you can print it on screen why not to print it in string?

Simply for the sake of being able to recognize the value.  If it doesn't 
have some value printed, how do you know what the value is? Although 
your example would work (from a previous post), I don't see a real world 
use for such an effort.

There are work arounds that are quite simple.


-- 
Until later, Geoffrey       Registered Linux User #108567
                             AT&T Certified UNIX System Programmer - 1995



view thread (19+ messages)  latest in thread

Message-ID: <4135A39A.3010406@3times25.net>
Permalink:  ../4135A39A.3010406@3times25.net/
Also on:    postgresql.org/message-id/4135A39A.3010406@3times25.net

 · 

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: esoteric@3times25.net
  Subject: Re: casting BOOL to somthng
  In-Reply-To: <4135A39A.3010406@3times25.net>

* 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