pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris BSomething <xpusostomos@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: PostgreSQL Bug List <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #18594: CASE WHEN ELSE failing to return the expected output when the same colum is used in WHEN and ELSE
Date: Tue, 18 Feb 2025 07:39:31 +0800
Message-ID: <CADrHaBFwwDHwPy9dhnGTrGUOQ1RJjdBnfTyLV9sNcBXGfFEdAw@mail.gmail.com> (raw)
In-Reply-To: <CAKFQuwYALVCQARQ5cELTWzzNpSj56sJ3NehGL_P3iRMs0-grtQ@mail.gmail.com>
References: <18594-af265c6988d431d8@postgresql.org>
	<0838f16a-8b3d-4c39-9ad8-5d27791e9dec@dunslane.net>
	<CAEgp-NfU3G_9ynpY4n0hUvYjW2eLLqmGJ5_ejtS5hPi131Jg5g@mail.gmail.com>
	<3501446.1724890288@sss.pgh.pa.us>
	<CADrHaBGKd4DQZpEWsdU3msCjg+z1dy1RkFbUn39pm+QuD0QMGQ@mail.gmail.com>
	<CAKFQuwZ2Rk4T+NWM6uLbooEmg9ADUPb9MqBvqFceK_c2+RyKBQ@mail.gmail.com>
	<CADrHaBE6Z2hXAL1VXdcqZiGLZBFharVZs7Qq8dCOzJSSegwDqw@mail.gmail.com>
	<CAKFQuwYALVCQARQ5cELTWzzNpSj56sJ3NehGL_P3iRMs0-grtQ@mail.gmail.com>

On Tue, Feb 18, 2025, 7:13 AM David G. Johnston <david.g.johnston@gmail.com>
wrote:

> On Mon, Feb 17, 2025 at 3:49 PM Chris BSomething <xpusostomos@gmail.com>
> wrote:
>
>> That sounds like a lot of words to justify an error that could be caught
>> at parse time, that is actually never caught at all.  It seems to me that
>> whatever type is inferred from a long constant string, it won't fit into a
>> char... At least not without casting it. And therefore an error should come
>> out.
>>
>
> I thought you were trying to convince people to modify the documentation?
> This reads more like wanting to hack the parser to teach it forbidden
> knowledge.
>

Hack? Forbidden knowledge? What an odd comment.



>
>

view thread (14+ messages)  latest in thread

Message-ID: <CADrHaBFwwDHwPy9dhnGTrGUOQ1RJjdBnfTyLV9sNcBXGfFEdAw@mail.gmail.com>
Permalink:  ../CADrHaBFwwDHwPy9dhnGTrGUOQ1RJjdBnfTyLV9sNcBXGfFEdAw@mail.gmail.com/
Also on:    postgresql.org/message-id/CADrHaBFwwDHwPy9dhnGTrGUOQ1RJjdBnfTyLV9sNcBXGfFEdAw@mail.gmail.com

 · 

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: xpusostomos@gmail.com, david.g.johnston@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18594: CASE WHEN ELSE failing to return the expected output when the same colum is used in WHEN and ELSE
  In-Reply-To: <CADrHaBFwwDHwPy9dhnGTrGUOQ1RJjdBnfTyLV9sNcBXGfFEdAw@mail.gmail.com>

* 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