Re: Validating problem in the isn contrib module - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Validating problem in the isn contrib module
Date
Msg-id 87zlfyc4ce.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Validating problem in the isn contrib module  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Responses Re: Validating problem in the isn contrib module
List pgsql-hackers
Andreas 'ads' Scherbaum <adsmail@wars-nicht.de> writes:

> The validator function should use the weak mode for itself to return
> 'f' in case of invalid input. It cannot be the users job to make sure a
> validator function is working as expected.

Well the input function is being called before the validator function ever
gets a chance to act. The validator function receives an already-formed isbn13
datum.

Is there an is_valid() which takes text input? Perhaps there should be --
though I think it would have to be isbn_is_valid() or something like that.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's RemoteDBA services!


pgsql-hackers by date:

Previous
From: Andreas 'ads' Scherbaum
Date:
Subject: Re: Validating problem in the isn contrib module
Next
From: Greg Stark
Date:
Subject: Re: Writing values to relation using bytearray ...