Forum OpenACS Q&A: Re: ad_form validation

Collapse
3: Re: ad_form validation (response to 1)
Posted by Randy O'Meara on
To expand on Don's response...

If you have the latest pg database driver, the error condition will be described in the global tcl variable "errorInfo". You can use a regex to extract the constraint name that is associated with the unique constraint violation. That is, if you have named your constraints.

Randy