--On Freitag, März 06, 2009 02:26:12 +0100 Andreas 'ads' Scherbaum
<adsmail@wars-nicht.de> wrote:
> test=# select is_valid('978-3-937514-69-6'::isbn13);
> ERROR: invalid check digit for ISBN number: "978-3-937514-69-6",
> should be 7 ROW 1: select is_valid('978-3-937514-69-6'::isbn13);
According to the docs, this is intended behavior. If you want to validate
those values later or yourself, you have to use the weak mode:
#= SELECT isn_weak(true);isn_weak
----------t
#= SELECT is_valid('978-3-937514-69-6'::isbn13);is_valid
----------f
#= SELECT is_valid('978-3-937514-69-7'::isbn13);is_valid
----------t
-- Thanks
Bernd