Re: Varchar standard compliance - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Varchar standard compliance
Date
Msg-id Pine.LNX.4.21.0011171948490.789-100000@peter.localdomain
Whole thread Raw
In response to Re: Varchar standard compliance  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Varchar standard compliance  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Is there a reason why the conversion from CHAR to CHAR(1) is done in
analyze.c:transformColumnType rather than right in the
grammar?  Currently, you get this incorrect behaviour:

peter=# select cast('voodoo' as char(1));?column?
----------v
(1 row)
peter=# select cast('voodoo' as char);?column?
----------voodoo
(1 row)

Both should return 'v'.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Coping with 'C' vs 'newC' function language names
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: AW: Coping with 'C' vs 'newC' function language namesh