Skip to content

Cut text values by length#22

Open
svetlanapelevina wants to merge 2 commits intobenahm:masterfrom
svetlanapelevina:substring-text-values-by-length
Open

Cut text values by length#22
svetlanapelevina wants to merge 2 commits intobenahm:masterfrom
svetlanapelevina:substring-text-values-by-length

Conversation

@svetlanapelevina
Copy link

@svetlanapelevina svetlanapelevina commented Oct 15, 2022

This changes actually related to this PR.

If the unique value was set to test0123456, but the maximum text field length is 5, it will throw an error STRING_TOO_LONG. So this code cut the string to 23456.

I decided to cut the beginning of the string, so this way it can still be unique.

Maybe it's a bit extra :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments