From: James F.H. <jf...@ci...> - 2002-08-29 14:54:00
|
On Wed, 28 Aug 2002 09:48:53 -0400 James F.Hranicky <jf...@ci...> wrote: > Is DBI silently catching exceptions? I found it. DBD::Oracle was catching but not handling all but one execption in DBI::DBD::Oracle::parse. ------------------------------------------ *** Oracle.rb Thu Aug 29 10:45:23 2002 --- Oracle.rb.mod Thu Aug 29 10:45:17 2002 *************** *** 339,344 **** --- 339,345 ---- @handle.parse(statement) rescue OCIError => err retry if err.to_i == 3123 ## block + raise DBI::DatabaseError.new(err.message, err.to_i) end colnr = 1 ------------------------------------------ HTH. ---------------------------------------------------------------------- | Jim Hranicky, Senior SysAdmin UF/CISE Department | | E314D CSE Building Phone (352) 392-1499 | | jf...@ci... http://www.cise.ufl.edu/~jfh | ---------------------------------------------------------------------- "Given a choice between a complex, difficult-to-understand, disconcerting explanation and a simplistic, comforting one, many prefer simplistic comfort if it's remotely plausible, especially if it involves blaming someone else for their problems." -- Bob Lewis, _Infoworld_ |