Re: SELECT CAST(123 AS char) -> 1

From: Ken Johanson <pg-user(at)kensystem(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT CAST(123 AS char) -> 1
Date: 2008-02-13 16:29:41
Message-ID: 47B31AF5.8030108@kensystem.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera wrote:
> If you are arguing that the spec's definition of the CHARACTER type is
> not really very useful, I think you are going to find a lot of
> supporters. You can send your complaints to the SQL committee; but
> then, it is unlikely that this is going to change anytime soon because
> of the fear of breaking backwards compatibility.
>

Agreed. There may be allot of users who in the case of CAST, need to
extract the leftmost digit, and for those database and their users that
do this by default, it would cause harm.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-02-13 16:56:47 Re: SELECT CAST(123 AS char) -> 1
Previous Message Alvaro Herrera 2008-02-13 16:18:50 Re: SELECT CAST(123 AS char) -> 1