| От | Tom Lane |
|---|---|
| Тема | Re: Problem using IP functions |
| Дата | |
| Msg-id | 22976.989725464@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Problem using IP functions ("Marc Lamothe" <mlamothe@openface.ca>) |
| Ответы |
how to remove ?
|
| Список | pgsql-sql |
"Marc Lamothe" <mlamothe@openface.ca> writes:
> The subnet_number column is a varchar(16) which I assume you can compare
> with a text data type, which is what host() returns.
Are you on a pre-7.1 Postgres release? host() is buggy before 7.1 ---
it includes a trailing null in its output, which it shouldn't oughta
have done. You can't see the null from outside the system, but it
manages to mess up text comparisons anyway.
BTW, you should consider using inet or cidr datatype for that column
rather than varchar...
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера