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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Ken Johanson <pg-user(at)kensystem(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT CAST(123 AS char) -> 1
Date: 2008-02-13 16:18:50
Message-ID: 20080213161850.GF11314@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ken Johanson wrote:

> Henceforth SELECT CAST(123 AS char) will and should undisputedly return '1'.

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.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ken Johanson 2008-02-13 16:29:41 Re: SELECT CAST(123 AS char) -> 1
Previous Message Dave Page 2008-02-13 16:12:29 Re: msvcr80.dll and PostgreSQL 8.3 under Windows XP