Skip to content

Commit

Permalink
fix: executeUpdate response sum from matched, delete and inserted count
Browse files Browse the repository at this point in the history
  • Loading branch information
QuadStingray committed Nov 5, 2024
1 parent 90f867b commit 242ee8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 242ee8e

Please sign in to comment.