[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] DBI errors, and catching them in a [perl] block


What techniques do others use in catching DBI errors within a Perl
block? For instance,

[perl table=mytable]
my $dbh = $Sql{mytable};
$dbh->do(q{INSERT INTO mytable (a, b, c) VALUES (?, ?, ?)}, ...
[/perl]

I have not yet found any way to catch an INSERT error (e.g., bad data
type, missing parameter, foreign key violation, unique constraint
violation).
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.