carbon-kernel
carbon-kernel copied to clipboard
Apply select with update lock only for MSSQL for updatePropertyWithID method
Purpose
The related PR added a change where an update lock is applied to the relevant user attribute rows before being updated. It was noted that this deadlock scenario occurs only in SQL Server, and this syntax of using lock hints
WITH (UPDLOCK)
is only supported in MSSQL. The deadlock scenario is not reproduced in H2. Therefore this PR excludes other types of DBs from being affected by this fix.
Related PRs
- https://github.com/wso2/carbon-kernel/pull/3751
- https://github.com/wso2/carbon-kernel/pull/3748