Re: Better handling of constraint failures?

[prev] [thread] [next] [Date index for 2004/08/12]

From: Perrin Harkins
Subject: Re: Better handling of constraint failures?
Date: 19:51 on 12 Aug 2004
On Thu, 2004-08-12 at 12:13, dan@xxxxxxxxxxxx.xxx wrote:
> Would it make sense to have the %info hash returned in constraint
> checking return something specific and verbose?  Maybe a hash that's
> something like:
> 
> %info=(error_type=>'constraint_failure',failed_column=>'column_name');

Yes, please make it so!

Meanwhile, you should be able to return anything you like from a
constraint if you just throw the exception yourself rather than waiting
for Class::DBI to do it for you.

- Perrin

Re: Better handling of constraint failures?
Drew Taylor 17:27 on 12 Aug 2004

Re: Better handling of constraint failures?
Clayton L. Scott 19:29 on 12 Aug 2004

Re: Better handling of constraint failures?
Drew Taylor 19:54 on 12 Aug 2004

Re: Better handling of constraint failures?
Clayton L. Scott 19:53 on 12 Aug 2004

Re: Better handling of constraint failures?
Clayton L. Scott 20:01 on 12 Aug 2004

Re: Better handling of constraint failures?
Perrin Harkins 19:51 on 12 Aug 2004

Re: Better handling of constraint failures?
Daniel Collis Puro 20:01 on 12 Aug 2004

Re: Better handling of constraint failures?
Clayton L. Scott 20:04 on 12 Aug 2004

Re: Better handling of constraint failures?
Daniel Collis Puro 20:42 on 12 Aug 2004

Re: Better handling of constraint failures?
Clayton Scott 21:49 on 12 Aug 2004

Re: Better handling of constraint failures?
Tony Bowden 13:52 on 24 Oct 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52