Re: mac.c

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: mac.c
Дата
Msg-id 39A0AEF9.7663FDF@alumni.caltech.edu
обсуждение исходный текст
Ответ на mac.c  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-hackers
> > o Two new functions, trunc(macaddr) and text(macaddr), where the former
> > returns the mac address with the low (non-manufacturer) fields zeroed
> > out, and the latter converts to a text string. The text conversion is
> > nice because capabilities such as LIKE can be used transparently :) Will
> > need to add macaddr(text) for symmetry.
> A cast shouldn't alter the value of the, er, value. This is like
> text(55) returning 'fifty-five'. What if I want to use substr() on the
> macaddr?

?? Just go ahead and use it! :)

There isn't anything new here, other than having the feature available
for macaddr as it is for other data types.
                     - Thomas


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

Предыдущее
От: Ned Lilly
Дата:
Сообщение: Re: Bug tracking (was Re: +/- Inf for float8's)
Следующее
От: Tom Lane
Дата:
Сообщение: BIT/BIT VARYING status