in reply to Re^2: DBI - check erroneous statement?
in thread DBI - check erroneous statement?

Can't you just examine $sth->{Statement}? See Statement