diff --git a/src/Db/Connection.php b/src/Db/Connection.php index 4b3199c..1c9e613 100644 --- a/src/Db/Connection.php +++ b/src/Db/Connection.php @@ -32,7 +32,7 @@ class Connection throw new SqlException('SQL There was an error executing the request'); } - if (strpos($sql, "SELECT") !== false) { + if (strpos($sql, "SELECT") !== false || strpos($sql, "OUTPUT INSERTED") !== false) { $rows = $statement->fetchAll($fetchMode); if (!is_array($rows)) { throw new SqlException('PDO Unable to retrieve the result');