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;
 			$id = 0;
 			$name = $this->name;
 			$name = $this->name;
-			$this->pdo->beginTransaction();
 			$query = $this->pdo->query("insert into `{$name}` {$this->pdo->stringSet($data)}");
 			$query = $this->pdo->query("insert into `{$name}` {$this->pdo->stringSet($data)}");
 			$query->execute();
 			$query->execute();
 			$id = $this->lastInsertId();
 			$id = $this->lastInsertId();
 			$query->closeCursor();
 			$query->closeCursor();
-			$this->pdo->commit();
 			return $id;
 			return $id;
 		}
 		}
 		public function update(array $data, array $filter = null){
 		public function update(array $data, array $filter = null){