瀏覽代碼

Remove transaction

Nathaniel van Diepen 6 年之前
父節點
當前提交
5228ae7687
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      PDO/table.class.php

+ 0 - 2
PDO/table.class.php

@@ -402,12 +402,10 @@
 			}
 			$id = 0;
 			$name = $this->name;
-			$this->pdo->beginTransaction();
 			$query = $this->pdo->query("insert into `{$name}` {$this->pdo->stringSet($data)}");
 			$query->execute();
 			$id = $this->lastInsertId();
 			$query->closeCursor();
-			$this->pdo->commit();
 			return $id;
 		}
 		public function update(array $data, array $filter = null){