Re:Common mistakes in PostgreSQL
by orf on Friday May 03, 2019 @02:24PM
(#19820935)
I’m pretty sure Django doesn’t actually create a limited char field that way, it merely adds validation. For exactly this reason.
[ Parent
| on HN ]
It does pass the limit down. I've just verified my schema that has a varchar(128).
One of the reasons given in the bug for it being difficult to fix is down in the depths it assumes it is a varchar() -- with parentheses.
Here's the relevant comment: