Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to #28845 - JSON: add support for partial update to update just a single scalar property, rather than entire entities #28862

Merged
merged 1 commit into from
Aug 25, 2022

Commits on Aug 25, 2022

  1. Fix to #28845 - JSON: add support for partial update to update just a…

    … single scalar property, rather than entire entities
    
    Optimization for partial updates - when only one property is modified on the entity we can change it directly, rather than rewriting the JSON element for the entire entity.
    To avoid string formatting issues we construct faux JSON array and insert the value that is to be the replacement, and then in the update statement we extract the value using JSON_VALUE.
    In case of numeric or bool we need an additional convert statement around the value.
    
    Fixes #28845
    maumar committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    7923d9a View commit details
    Browse the repository at this point in the history