Skip to content

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

Merged
smitpatel merged 1 commit into
release/6.0from
smit/abc
Aug 4, 2022
Merged

smitpatel merged 1 commit into
release/6.0from
smit/abc

Conversation

@smitpatel

@smitpatel smitpatel commented Aug 2, 2022 •

Copy link
Copy Markdown
Contributor

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.

@smitpatel
smitpatel requested review from a team and ajcvickers August 2, 2022 22:24
@dougbu

dougbu commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

/ping reviewers

Need someone to chime in before we merge…

@dougbu

dougbu commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

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