Hello: I foud a question about function of transaction. In this function switch not have break
Transaction::Transaction(Connection& conn, IsolationLevel level, IsolationScope scope, bool consistent) : conn_(conn), finished_(true) // don't bother rolling it back if ctor fails { // Set the transaction isolation level and scope as the user wishes Query q(conn_.query("SET ")); if (scope == session) q << "SESSION "; 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"; } Qiufeng Chen 陈秋丰 360平台研发部 [说明: 说明: 说明: 说明: 2-1-26 邮件格] 电话:13693389017 飞信:13693389017 邮件:chenqiuf...@360.cn 地址:北京朝阳区建国路71号惠通时代广场C座202 100025