Re: Re: charin(), text_char() should return something else for empty input

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Don Baccus <dhogaza(at)pacifier(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: charin(), text_char() should return something else for empty input
Date: 2001-05-28 19:59:43
Message-ID: 15448.991079983@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Don Baccus <dhogaza(at)pacifier(dot)com> writes:
> Mapping '' to ' ' doesn't make a lot of sense to me. It isn't what
> I'd expect.
> I think the behavior you describe in this note is better.

I'm coming to that conclusion as well. If you look closely, both
charin() and charout() act that way already; so the second proposal
boils down to making the text <=> char conversion functions act in
accordance with the way that char's I/O conversions already act.
That seems a less drastic change than altering both I/O and conversion
behavior.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message D'Arcy J.M. Cain 2001-05-28 21:04:52 Re: User functions and AIX
Previous Message Don Baccus 2001-05-28 19:25:09 Re: Re: charin(), text_char() should return something else for empty input