Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Better way to catch Class::DBI constraint failures?

by Aristotle (Chancellor)
on Aug 13, 2004 at 01:58 UTC ( #382530=note: print w/replies, xml ) Need Help??


in reply to Better way to catch Class::DBI constraint failures?

Try having a look at Class::DBI::FromCGI instead. It uses CGI::Untaint in a separate step to validate arguments, so Class::DBI's constraint checking becomes a mere safety net.

Makeshifts last the longest.

  • Comment on Re: Better way to catch Class::DBI constraint failures?

Replies are listed 'Best First'.
Re^2: Better way to catch Class::DBI constraint failures?
by Hero Zzyzzx (Curate) on Aug 13, 2004 at 03:48 UTC

    I've checked that one out, thanks! One reason I wanted to use CDBI constraints is to have my form validation logic exist only in one place. "Don't repeat yourself" and all that pragmatic stuff.

    Anyway, I figure if I can just get Class::DBI to emit more meaningful exceptions from constraint failures I can catch those in an overridden CDBI::_croak. You can read more detail here on the CDBI mailing list.

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

    My Biz

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://382530]
help
Chatterbox?
[LanX]: and I'm sure I read that *hotel* used to be pronounced 'otel by the English upperclass
[Your Mother]: American English vowels are pretty lazy/mumbly in general.
[LanX]: talking about antisemitism, youtube automatic subtitles is entertaining shocking sometimes ... like when offering "Fruit Jews" as a drink
[Your Mother]: ...Come on you King of the Juice...
[Your Mother]: I actually know his kids.
LanX has to go/
[Your Mother]: King Herod's song (Mike D'Abo performed, I think)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-03-27 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.