Re: [Django] #21471: CharField max_lenght is not enforced on SQLite backend with Python 3

2024-07-22 Thread Django
#21471: CharField max_lenght is not enforced on SQLite backend with Python 3
-+-
 Reporter:  lvella   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  1.6
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  invalid
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by vivook):

 This could be done with a check constraint. [See discussion
 https://forum.djangoproject.com/t/idea-make-sqlite-enforce-varchar-
 lengths-via-check-constraints/33101]
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190d941e48d-7f3bcf22-4fd5-42f3-9818-65190ca05d6d-00%40eu-central-1.amazonses.com.


Re: [Django] #21471: CharField max_lenght is not enforced on SQLite backend with Python 3

2013-11-19 Thread Django
#21471: CharField max_lenght is not enforced on SQLite backend with Python 3
-+-
 Reporter:  lvella   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  1.6
  (models, ORM)  |   Resolution:  invalid
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timo):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 Yes, this is a limitation of SQLite. see http://www.sqlite.org/faq.html#q9

 This is why it's recommended to use the same database for development as
 you use in production.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.e7884b75736eb17123f57e01494da622%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.