Selaa lähdekoodia

Remove transaction

Nathaniel van Diepen 6 vuotta sitten
vanhempi
commit
5228ae7687
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  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){