Re: Validating problem in the isn contrib module

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: [PATCH] Regression test fix for Czech locale
Следующее
От: Andrew Dunstan
Дата:
Сообщение: small parallel restore optimization