[Svn-src-all:4284] [version-2_13-dev 23198] #2370 トランザクション処理の前にトランザクションの状態を確認する
pineray
admin @ mail.ec-cube.net
2013年 9月 9日 (月) 12:52:52 JST
Subversion committed to /home/svn/open 23198
http://svn.ec-cube.net/open_trac/changeset/23198
┌────────────────────────────┐
│更新者 : pineray │
│更新日時: 2013-09-09 12:52:52 +0900 (月, 09 9月 2013)│
└────────────────────────────┘
Log:
--------------------------------------------------------
#2370 トランザクション処理の前にトランザクションの状態を確認する
MDB2のコードを良く読んだら、内部で同じような処理を行っているので、今回の変更を差し戻します。
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U branches/version-2_13-dev/data/class/SC_Query.php
変更: branches/version-2_13-dev/data/class/SC_Query.php
===================================================================
--- branches/version-2_13-dev/data/class/SC_Query.php 2013-09-09 02:57:11 UTC (rev 23197)
+++ branches/version-2_13-dev/data/class/SC_Query.php 2013-09-09 03:52:52 UTC (rev 23198)
@@ -200,11 +200,7 @@
*/
public function commit()
{
- if ($this->inTransaction()) {
- return $this->conn->commit();
- } else {
- return false;
- }
+ return $this->conn->commit();
}
/**
@@ -215,11 +211,7 @@
*/
public function begin()
{
- if (!$this->inTransaction()) {
- return $this->conn->beginTransaction();
- } else {
- return false;
- }
+ return $this->conn->beginTransaction();
}
/**
@@ -230,11 +222,7 @@
*/
public function rollback()
{
- if ($this->inTransaction()) {
- return $this->conn->rollback();
- } else {
- return false;
- }
+ return $this->conn->rollback();
}
/**
Svn-src-all メーリングリストの案内