Re: character datatype explaination sought - Mailing list pgsql-general

From Laurenz Albe
Subject Re: character datatype explaination sought
Date
Msg-id 4dd5afc1c5524a59309599ad4894ac565b9c21b0.camel@cybertec.at
Whole thread Raw
In response to character datatype explaination sought  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
List pgsql-general
On Thu, 2020-10-15 at 10:07 -0400, James B. Byrne wrote:
> I am testing Idempiere and have run across this in an example:
> 
> character(1) DEFAULT 'Y'::bpchar NOT NULL,
> 
> How does this differ from
> 
> character(1) DEFAULT 'Y' NOT NULL,

It is the same, only in the first version the type cast is explicit.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: character datatype explaination sought
Next
From: Adrian Klaver
Date:
Subject: Re: character datatype explaination sought