diff --git a/src/main/scala/dev/mongocamp/driver/mongodb/jdbc/statement/MongoPreparedStatement.scala b/src/main/scala/dev/mongocamp/driver/mongodb/jdbc/statement/MongoPreparedStatement.scala index 5f22058..1b45749 100644 --- a/src/main/scala/dev/mongocamp/driver/mongodb/jdbc/statement/MongoPreparedStatement.scala +++ b/src/main/scala/dev/mongocamp/driver/mongodb/jdbc/statement/MongoPreparedStatement.scala @@ -373,7 +373,7 @@ case class MongoPreparedStatement(connection: MongoJdbcConnection) extends Calla checkClosed() val updateResponse = executeQuery(sql) updateResponse.next() - val updateCount = updateResponse.getInt("matchedCount") + val updateCount = updateResponse.getInt("matchedCount") + updateResponse.getInt("deletedCount") + updateResponse.getInt("insertedCount") _lastUpdateCount = updateCount updateCount }