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 sync rule preview in case of boolean properties #2905

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

raviks789
Copy link
Collaborator

@raviks789 raviks789 commented Aug 8, 2024

Sync rules created for import sources, importing objects with boolean properties, throws SQLSTATE error as shown in the screenshot below.

Sync Preview SQL State error

The reason for this is because the preview creates temporary branched objects by importing the objects' properties to check for the modifications. And the boolean properties, were not transformed to y or n (which is the supported datatype for boolean (ENUM('y','n')) to store in the database) before the temporary object is created.

fixes ref/IP/53248

@raviks789 raviks789 self-assigned this Aug 8, 2024
@cla-bot cla-bot bot added the cla/signed label Aug 8, 2024
@raviks789 raviks789 force-pushed the fix/sync-preview-with-bool-property branch from 861fb8e to bd3b324 Compare August 8, 2024 13:04
@raviks789 raviks789 added this to the v1.11.2 milestone Aug 13, 2024
@raviks789 raviks789 marked this pull request as ready for review October 22, 2024 08:44
@raviks789 raviks789 force-pushed the fix/sync-preview-with-bool-property branch 2 times, most recently from 98d2bcf to a8d8730 Compare October 22, 2024 14:42
@lippserd
Copy link
Member

@raviks789 Please write a summary about the issue in the PR description.

@lippserd lippserd force-pushed the fix/sync-preview-with-bool-property branch from a8d8730 to 4099622 Compare November 7, 2024 09:24
@lippserd lippserd merged commit 2d332a2 into master Nov 7, 2024
15 checks passed
@lippserd lippserd deleted the fix/sync-preview-with-bool-property branch November 7, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants