Skip to content

Commit

Permalink
fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
emalherbi committed Sep 5, 2018
1 parent 7568882 commit 8ffaffe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ try {
echo print_r($result);
echo '</pre>';

$mssql->begin();
// OR

$result = $mssql->execSql('UPDATE CLIENTES SET NOME = \'TESTE 123\' WHERE ID_CLIENTE = 450');
echo '<pre>';
echo print_r($result);
echo '</pre>';

$mssql->begin();

$result = $mssql->exec('UPDATE CLIENTES SET NOME = \'TESTE 456\' WHERE ID_CLIENTE = 450');
echo '<pre>';
Expand Down
5 changes: 5 additions & 0 deletions src/MyMssql.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ public function exec($sql)
}
}

public function execSql($sql)
{
return $this->exec($sql);
}

public function execScript($sql)
{
try {
Expand Down

0 comments on commit 8ffaffe

Please sign in to comment.