diff --git a/vendor/model/Database.class.php b/vendor/model/Database.class.php index 99005fa..31fe3bd 100644 --- a/vendor/model/Database.class.php +++ b/vendor/model/Database.class.php @@ -117,14 +117,10 @@ class Database /** Parametros */ - echo $this->clientId = $clientId; - echo '---'; - echo $this->fileSize = $fileSize; - echo '---'; - echo $this->lastModified = $lastModified; - echo '---'; - echo $this->dbAccessible = $dbAccessible; - echo '---'; + $this->clientId = $clientId; + $this->fileSize = $fileSize; + $this->lastModified = $lastModified; + $this->dbAccessible = $dbAccessible; /** Consulta SQL */ $this->sql = 'insert into db(client_id, @@ -153,6 +149,10 @@ class Database /** Executo o SQL */ $this->stmt->execute(); + /** Confirma a transação */ + $this->connection->connect()->commit(); + return true; + } catch (\Exception $exception) { /** Desfaz a transação */