X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 491765286A for ; Fri, 3 Jun 2005 10:44:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62347-06 for ; Fri, 3 Jun 2005 13:44:05 +0000 (GMT) Received: from web11.manitu.net (web11.manitu.net [217.11.48.111]) by svr1.postgresql.org (Postfix) with ESMTP id 23FF052841 for ; Fri, 3 Jun 2005 10:44:04 -0300 (ADT) Received: from dicaprio.akademie1.de (dicaprio.akademie1.de [62.165.4.166]) (authenticated) by web11.manitu.net (8.10.2-SOL3/8.10.2) with ESMTP id j53Di4T02590; Fri, 3 Jun 2005 15:44:04 +0200 Subject: Re: 'true'::TEXT::BOOLEAN doesn't work From: Markus Bertheau =?UTF-8?Q?=E2=98=AD?= To: Achilleus Mantzios Cc: Michael Glaesemann , PostgreSQL In-Reply-To: <1117804023.9816.30.camel@dicaprio.akademie1.de> References: <1117804023.9816.30.camel@dicaprio.akademie1.de> Content-Type: text/plain; charset=UTF-8 Date: Fri, 03 Jun 2005 15:43:59 +0200 Message-Id: <1117806239.9816.39.camel@dicaprio.akademie1.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.022 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/46 X-Sequence-Number: 21647 В Птн, 03/06/2005 в 15:07 +0200, Markus Bertheau ☭ пишет: > В Птн, 03/06/2005 в 15:46 +0300, Achilleus Mantzios пишет: > > > Also according to the docs: > > http://www.postgresql.org/docs/current/static/datatype-boolean.html > > > > "Tip: Values of the boolean type cannot be cast directly to other types > > (e.g., CAST (boolval AS integer) does not work). This can be accomplished > > using the CASE expression: CASE WHEN boolval THEN 'value if true' ELSE > > 'value if false' END." > > Ah, that works. Thanks very much. Correcting myself, that doesn't work. It says something along the lines of case expression must be of type boolean. Markus -- Markus Bertheau ☭