pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: vvinnikov@list.ru
Subject: BUG #17765: SELECT CAST(true AS BIGINT);
Date: Tue, 31 Jan 2023 13:39:58 +0000
Message-ID: <17765-3090f5817e7832f5@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17765
Logged by:          Vladimir Vinnikov
Email address:      vvinnikov@list.ru
PostgreSQL version: 15.1
Operating system:   x86_64-pc-linux-gnu
Description:        

ERROR: cannot cast type boolean to bigint

That's inconsistent since casting boolean to int is OK (SELECT CAST(true AS
INT);) or double casting is OK (SELECT CAST(CAST(true AS INT) AS BIGINT);).



view thread (3+ messages)  latest in thread

Message-ID: <17765-3090f5817e7832f5@postgresql.org>
Permalink:  ../17765-3090f5817e7832f5@postgresql.org/
Also on:    postgresql.org/message-id/17765-3090f5817e7832f5@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, vvinnikov@list.ru
  Subject: Re: BUG #17765: SELECT CAST(true AS BIGINT);
  In-Reply-To: <17765-3090f5817e7832f5@postgresql.org>

* 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