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

Cut text values by length #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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