Problems with MySQL BulkUpdate Operations#1877
Open
muratalicilar wants to merge 2 commits intoborisdj:masterfrom
Open
Problems with MySQL BulkUpdate Operations#1877muratalicilar wants to merge 2 commits intoborisdj:masterfrom
muratalicilar wants to merge 2 commits intoborisdj:masterfrom
Conversation
1. TableInfo/LoadData -> PropertyColumnNamesUpdateDict 2. MySqlQueryBuilder/MergeTable -> PropertyColumnNamesUpdateDict
Owner
|
Hi, can you also make and add a Test for this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem I'm experiencing:
When performing a bulk update, I only pass the fields I want to change into the "
PropertiesToInclude" field.However, because the main table had multiple unique fields, and these fields were not included in the "
PropertiesToInclude" field, the records couldn't be inserted into the temporary table. Because the unique fields weren't included in the "PropertiesToInclude" field, they were being passed to the temporary table with a "null" value.I don't want the unique fields to be changed again.
When I reviewed the project, I realized that the "
PropertiesToIncludeOnUpdate" field was not functional, so I injected it into the relevant fields, and now everything works as I want.In "
PropertiesToInclude," I add the fields that need to be passed to the temporary table and that need to be taken action (the fields that need to be changed and the unique fields).In "
PropertiesToIncludeOnUpdate," I add only the fields I want to change.In "
PropertiesToExcludeOnUpdate," I add the fields I don't want to change.Thank you.