We're not talking about representing all CharFields as TEXT, it is about choosing a sane length as the default for the varchar datatype. So if you would not specify max_length, for MySQL it would be varchar(255), for oracle it would be varchar(4000 / bytes_per_char_for NLS_CHARACTERSET) and for PostgreSQL it would be just VARCHAR without a length.
I would like some comments / help for how to compute the size of the string in bytes for Oracle. unless we can opt for using a default length of 255 for all database backends besides postgres. On Mon, Sep 21, 2015 at 2:46 PM, Christophe Pettus <x...@thebuild.com> wrote: > > On Sep 21, 2015, at 9:54 AM, 'Tom Evans' via Django developers > (Contributions to Django itself) <django-developers@googlegroups.com> > wrote: > > I'm slightly worried from a DB point of view. > > I have to agree, even speaking as PostgreSQL geek. While VARCHAR and TEXT > are implemented the same way in PostgreSQL, conceptually they're different > things. I don't think the relatively modest benefit of having no default > justifies the problems that result on other platforms. > > -- > -- Christophe Pettus > x...@thebuild.com > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/DA725AF8-A7CA-449F-B92A-0BCCDB124AD6%40thebuild.com > . > For more options, visit https://groups.google.com/d/optout. > -- Aron Podrigal - '1000001', '1110010', '1101111', '1101110' '1010000', '1101111', '1100100', '1110010', '1101001', '1100111', '1100001', '1101100' P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39' -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CANJp-yiKv1iop5nJ%2BkH444L4iJKCATHt%2Bdkd%3DFiC872mgYUVmA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.