| От | Tom Lane |
|---|---|
| Тема | Re: Validating problem in the isn contrib module |
| Дата | |
| Msg-id | 28395.1236353272@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Validating problem in the isn contrib module (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>) |
| Ответы |
Re: Validating problem in the isn contrib module
|
| Список | pgsql-hackers |
"Andreas 'ads' Scherbaum" <adsmail@wars-nicht.de> writes:
> This leads back to my initial question: intended behaviour or just a
> bug? And how can one validate an ISBN without raising an error?
Judging from the comments, is_valid (and the internal validity bit)
were a bad design decision that the author later regretted, but felt
he couldn't change for compatibility reasons. I'm not sure why not
... we make bigger incompatible changes than that all the time.
The way to validate an ISBN is exactly the same as it is for every
other data type: feed the string to the input function and see if
it throws an error.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера