Re: Is this error expected ?

From: Yavuz TANRIVERDİ <sternix(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is this error expected ?
Date: 2022-10-19 07:31:09
Message-ID: CAH-+qaYRSyt_anceo76cf=iWSFzJuoOAbXW5brr_jcDNKsp5Pg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok, thank you very much,

On Wed, Oct 19, 2022 at 10:15 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:

> On Wed, 2022-10-19 at 09:50 +0300, Yavuz TANRIVERDİ wrote:
> > 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/pgsql/CPgsqlSchema.php#L233
> > 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 ?
>
> Yes, it is. See this paragraph from the release notes
> (https://www.postgresql.org/docs/current/release-15.html#id-1.11.6.5.5.13
> ):
>
> - Create a new pg_type.typcategory value for "char" (Tom Lane)
> Some other internal-use-only types have also been assigned to this
> category.
>
> Perhaps that should have been listed as a potential compatibility break,
> but
> the documentation explicity says that "char" is not intended for use by the
> end user (https://www.postgresql.org/docs/current/datatype-character.html
> ):
>
> > These are not intended for general-purpose use, only for use in the
> internal system catalogs.
>
> You will have to add an explicit type cast.
>
> Yours,
> Laurenz Albe
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2022-10-19 08:03:23 Re: byte-size of column values
Previous Message Laurenz Albe 2022-10-19 07:15:39 Re: Is this error expected ?