We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90f867b commit 242ee8eCopy full SHA for 242ee8e
1 file changed
src/main/scala/dev/mongocamp/driver/mongodb/jdbc/statement/MongoPreparedStatement.scala
@@ -373,7 +373,7 @@ case class MongoPreparedStatement(connection: MongoJdbcConnection) extends Calla
373
checkClosed()
374
val updateResponse = executeQuery(sql)
375
updateResponse.next()
376
- val updateCount = updateResponse.getInt("matchedCount")
+ val updateCount = updateResponse.getInt("matchedCount") + updateResponse.getInt("deletedCount") + updateResponse.getInt("insertedCount")
377
_lastUpdateCount = updateCount
378
updateCount
379
}
0 commit comments