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

[release/6.0] Add more cast nodes in multi-line breaks during migrations #28576

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

smitpatel
Copy link
Member

@smitpatel smitpatel commented Aug 2, 2022

Resolves #27206

Description

In migrations we generate SQL literal for string constant for default value and other seed data. When the data has line breaks we expand it out in Concat. While expanding in to Concat we need to inject cast to nvarchar(max) to avoid truncation of data.

Customer impact

Customers with large text containing multiple line breaks will see data truncated.

How found

Customer reported on 6.0

Regression

No.

Testing

Added tests for affected scenario.

Risk

Low. Also added quirk to revert back to older behavior.

This is port of #28064 which is already fixed in main.

@dougbu
Copy link
Member

dougbu commented Aug 3, 2022

/ping reviewers

Need someone to chime in before we merge…

@dougbu
Copy link
Member

dougbu commented Aug 3, 2022

Now we just need Tactics approval 😀

@ajcvickers ajcvickers added this to the 6.0.x milestone Aug 4, 2022
@rbhanda rbhanda modified the milestones: 6.0.x, 6.0.9 Aug 4, 2022
@smitpatel smitpatel merged commit f70e9ae into release/6.0 Aug 4, 2022
@smitpatel smitpatel deleted the smit/abc branch August 4, 2022 23:02
@smitpatel smitpatel removed this from the 6.0.9 milestone Aug 4, 2022
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.

5 participants