Atualizando Database.class.php
This commit is contained in:
parent
b368da4d04
commit
c654903e7e
1 changed files with 8 additions and 8 deletions
16
vendor/model/Database.class.php
vendored
16
vendor/model/Database.class.php
vendored
|
|
@ -117,14 +117,10 @@ class Database
|
||||||
|
|
||||||
|
|
||||||
/** Parametros */
|
/** Parametros */
|
||||||
echo $this->clientId = $clientId;
|
$this->clientId = $clientId;
|
||||||
echo '---';
|
$this->fileSize = $fileSize;
|
||||||
echo $this->fileSize = $fileSize;
|
$this->lastModified = $lastModified;
|
||||||
echo '---';
|
$this->dbAccessible = $dbAccessible;
|
||||||
echo $this->lastModified = $lastModified;
|
|
||||||
echo '---';
|
|
||||||
echo $this->dbAccessible = $dbAccessible;
|
|
||||||
echo '---';
|
|
||||||
|
|
||||||
/** Consulta SQL */
|
/** Consulta SQL */
|
||||||
$this->sql = 'insert into db(client_id,
|
$this->sql = 'insert into db(client_id,
|
||||||
|
|
@ -153,6 +149,10 @@ class Database
|
||||||
/** Executo o SQL */
|
/** Executo o SQL */
|
||||||
$this->stmt->execute();
|
$this->stmt->execute();
|
||||||
|
|
||||||
|
/** Confirma a transação */
|
||||||
|
$this->connection->connect()->commit();
|
||||||
|
return true;
|
||||||
|
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
|
|
||||||
/** Desfaz a transação */
|
/** Desfaz a transação */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue