Re: More char()/ascii() - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: More char()/ascii()
Date
Msg-id 47BC2361.1020505@dunslane.net
Whole thread Raw
In response to More char()/ascii()  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: More char()/ascii()  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers

Gregory Stark wrote:
> Also, I thought we said this would be an error:
>
> postgres=# select length("char"(0));
>  length 
> --------
>       0
> (1 row)
>
>   

IIRC, we said chr(0) would give you an error, and it does. I don't 
recall any discussion of "char"(0), but no doubt a few brain cells have 
died since then.

Fixing it would be trivial, I'm sure, but is it really a problem?

cheers

andrew


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: failed assertion in toasting code
Next
From: Magnus Hagander
Date:
Subject: Re: Permanent settings