inet type and network()

Поиск
Список
Период
Сортировка
От Daniel J. Kressin
Тема inet type and network()
Дата
Msg-id 3AB03101.DA4CE625@globalcrossing.com
обсуждение исходный текст
Ответы Re: inet type and network()
Список pgsql-general
My table contains the following rows in a column of type inet:
     ip
 -------------
 10.24.4.0/22
 10.24.4.10/22
 10.24.5.0/22
 10.24.5.5/22

When I do a select, the rows come up as:
     ip
 --------------
 10.24.4/22
 10.24.4.10/22
 10.24.5/22
 10.24.5.5/22

The .0s get dropped.  Is there a way to force it to leave the .0s
attached?
--
Dan
 ____    Kressin   ____   .-----------------------------------.
/___ \____________/ __ \  | Unix SysAdmin                     |
    \  \    /      /  \ | | Global Crossing                   |
 ___/ __\/\/rench_ \__/ | | dkressin@globalcrossing.com       |
\____/            \____/  | http://www.vib.org/wrench/        |
                          `-----------------------------------'

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

Предыдущее
От: "keith"
Дата:
Сообщение: ODBC
Следующее
От: Tom Lane
Дата:
Сообщение: Re: inet type and network()