Better HN
topnewbestaskshowjobs
Log inSign up

faqinghere

2 karma · joined Sep 2, 2020 (6y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

Caution, char != grapheme. Did you try it with combining characters?

comment 5y ago · link · parent

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.