Re: magic constant -1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: magic constant -1
Дата
Msg-id 15081.1257461974@sss.pgh.pa.us
обсуждение исходный текст
Ответ на magic constant -1  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: magic constant -1
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> we use a value -1 as two values: a) unknown typmod, b) unknown
> location. Can we substitute it by some better identifier?

> Maybe: UnknownTmod, UnknownLoc ... UnspecTmd, UnspecLoc???

Doesn't really seem worth the trouble, especially since the checks
for "unspecified" are coded as negative/nonnegative rather than
simple equality.
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: plperl and inline functions -- first draft
Следующее
От: Joshua Tolley
Дата:
Сообщение: Re: plperl and inline functions -- first draft