Browse Source

Remove transaction

Nathaniel van Diepen 6 years ago
parent
commit
5228ae7687
1 changed files with 0 additions and 2 deletions
  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){