pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is this error expected ?
Date: Wed, 19 Oct 2022 08:57:53 -0500
Message-ID: <a6c3e855-92c7-f75c-637d-af66853123bd@gmail.com> (raw)
In-Reply-To: <CAH-+qaYG=v0ts62XJqAjDJthJcvtc_EdMYv4Eh0ZnX3TM7Zm5A@mail.gmail.com>
References: <CAH-+qaYG=v0ts62XJqAjDJthJcvtc_EdMYv4Eh0ZnX3TM7Zm5A@mail.gmail.com>

On 10/19/22 01:50, Yavuz TANRIVERDİ wrote:
> |Hi,|
> |i have an |
> |
> |"ERROR: UNION types "char" and text cannot be matched CASE WHEN 
> indisprimary THEN"||
> |error from |
> |https://github.com/yiisoft/yii/blob/e7c298343bf1f76186d443b62ff853d2d36e19f0/framework/db/schema/pgs...|
> |I read release notes, but can't find any related change,|
> |It works for PostgreSQL 14.5 but fails with PostgreSQL ||15.0, ||a test sample below.|
> Is this error expected ?
> Thanks,
> |create table tbla ( a "char" ); |

Try CHAR(1) instead of just CHAR.

> |create table tblb ( b char(1) ); insert into tbla values ('a'); insert 
> into tbla values ('b'); insert into tblb values ('c'); insert into tblb 
> values ('d'); -- works with 14.5 fails on 15.0|
> |select a from tbla union all select case when true then 'p' else 'u' end 
> from tblb; |

-- 
Angular momentum makes the world go 'round.

view thread (4+ messages)

Message-ID: <a6c3e855-92c7-f75c-637d-af66853123bd@gmail.com>
Permalink:  ../a6c3e855-92c7-f75c-637d-af66853123bd@gmail.com/
Also on:    postgresql.org/message-id/a6c3e855-92c7-f75c-637d-af66853123bd@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Is this error expected ?
  In-Reply-To: <a6c3e855-92c7-f75c-637d-af66853123bd@gmail.com>
  References: <CAH-+qaYG=v0ts62XJqAjDJthJcvtc_EdMYv4Eh0ZnX3TM7Zm5A@mail.gmail.com> <a6c3e855-92c7-f75c-637d-af66853123bd@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