Author: wyoung
Date: Fri Jan 12 19:48:22 2007
New Revision: 1399
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1399&view=rev
Log:
Transaction's dtor eats any exception thrown by Query::execute(), to
avoid blowing up the program. Fix suggested by Alex Burton
<[EMAIL PROTECTED]>
Modified:
trunk/lib/transaction.cpp
Modified: trunk/lib/transaction.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/transaction.cpp?rev=1399&r1=1398&r2=1399&view=diff
==============================================================================
--- trunk/lib/transaction.cpp (original)
+++ trunk/lib/transaction.cpp Fri Jan 12 19:48:22 2007
@@ -59,7 +59,12 @@
Transaction::~Transaction()
{
if (!finished_) {
- rollback();
+ try {
+ rollback();
+ }
+ catch (...) {
+ // eat all exceptions
+ }
}
}
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits