Author: wyoung
Date: Thu Apr 3 21:27:18 2014
New Revision: 2766
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2766&view=rev
Log:
Added missing "break;" statements in Transaction ctor taking an
isolation level parameter, which caused only the last one to do the
right thing. Problem noticed by Tony Whyman, fix by me.
Modified:
trunk/lib/transaction.cpp
Modified: trunk/lib/transaction.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/transaction.cpp?rev=2766&r1=2765&r2=2766&view=diff
==============================================================================
--- trunk/lib/transaction.cpp (original)
+++ trunk/lib/transaction.cpp Thu Apr 3 21:27:18 2014
@@ -1,7 +1,7 @@
/***********************************************************************
transaction.cpp - Implements the Transaction class.
- Copyright (c) 2006-2007 by Educational Technology Resources, Inc.
+ Copyright © 2006-2014 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the
CREDITS.txt file in the top directory of the distribution for details.
@@ -63,10 +63,10 @@
if (scope == global) q << "GLOBAL ";
q << "TRANSACTION ISOLATION LEVEL ";
switch (level) {
- case read_uncommitted: q << "READ UNCOMMITTED";
- case read_committed: q << "READ COMMITTED";
- case repeatable_read: q << "REPEATABLE READ";
- case serializable: q << "SERIALIZABLE";
+ case read_uncommitted: q << "READ UNCOMMITTED"; break;
+ case read_committed: q << "READ COMMITTED"; break;
+ case repeatable_read: q << "REPEATABLE READ"; break;
+ case serializable: q << "SERIALIZABLE"; break;
}
q.execute();
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits