Last active
September 13, 2020 01:30
-
-
Save adworse/4fb1cb8849058386bedd4f7a0c34bee8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex> name = "समुद्र के भीतर अचानक जब बड़ी तेज़ हलचल होने लगती है तो उसमें तूफान उठता है जिससे ऐसी लंबी और बहुत ऊंची लहरों का रेला उठना शुरू हो जाता"\ | |
|> Naive.trim_name | |
"समुद्र के भीतर अचानक जब बड़ी तेज़ हलचल होने लगती है तो उसमें तूफान उठता है जिससे ऐसी लंबी और बहुत ऊंची लहरों का" | |
iex> name |> String.length | |
80 | |
iex> Repo.insert(%Company{name: name}) | |
** (Postgrex.Error) ERROR 22001 (string_data_right_truncation) value | |
too long for type character varying(80) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment