From 8ffaffe165bdb5f0fe3322c5cef6e8efe3f8b7ab Mon Sep 17 00:00:00 2001 From: Eduardo Malherbi Date: Wed, 5 Sep 2018 13:36:21 -0300 Subject: [PATCH] fix #26 --- README.md | 9 ++++++++- src/MyMssql.php | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 460d6c1..b9facac 100755 --- a/README.md +++ b/README.md @@ -48,7 +48,14 @@ try { echo print_r($result); echo ''; - $mssql->begin(); + // OR + + $result = $mssql->execSql('UPDATE CLIENTES SET NOME = \'TESTE 123\' WHERE ID_CLIENTE = 450'); + echo '
';
+    echo print_r($result);
+    echo '
'; + +$mssql->begin(); $result = $mssql->exec('UPDATE CLIENTES SET NOME = \'TESTE 456\' WHERE ID_CLIENTE = 450'); echo '
';
diff --git a/src/MyMssql.php b/src/MyMssql.php
index a4d5c09..3046ef4 100755
--- a/src/MyMssql.php
+++ b/src/MyMssql.php
@@ -325,6 +325,11 @@ public function exec($sql)
         }
     }
 
+    public function execSql($sql)
+    {
+        return $this->exec($sql);
+    }
+
     public function execScript($sql)
     {
         try {