wr
hn
Top
New
Best
Ask
Show
Jobs
Back
f
faqinghere
Joined 6 years ago
Karma
2
Submissions
3
Member since
Sep 2
View on Hacker News
Recent submissions
Comment · 2 years ago
Caution, char != grapheme. Did you try it with combining characters?
Comment · 5 years ago
I believe that Postgres, following the SQL standard, silently truncates longer strings when using varchar(n), which is probably not a desirable result if you're using it for validation.