Re: Weird NULL behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Weird NULL behavior
Дата
Msg-id 28472.1036699251@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Weird NULL behavior  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-sql
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> On Thu, 7 Nov 2002, Tom Lane wrote:
>> I am kind of inclined to remove the arithmetic operators on "char"
>> (+,-,*,/) in 7.4 --- they don't seem to have any real-world uses,
>> and as this example illustrates, they are perfectly positioned to
>> capture cases that probably ought to be errors.

> That seems to make sense. I assume that they were there so that someone
> could treat it as a 1 byte integer?

Presumably ... but defining a numeric type named "int1" would be a lot
more sensible than overloading "char" for the purpose.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Weird NULL behavior
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: Quartile (etc) ranking in a SQL statement?