修正Connection类的batchQuery

This commit is contained in:
thinkphp
2016-06-22 23:44:49 +08:00
parent 62de83358a
commit 275d93cc38

View File

@@ -647,9 +647,9 @@ abstract class Connection
} }
// 提交事务 // 提交事务
$this->commit(); $this->commit();
} catch (\PDOException $e) { } catch (\Exception $e) {
$this->rollback(); $this->rollback();
return false; throw $e;
} }
return true; return true;
} }