Opened 20 years ago
Closed 18 years ago
#1151 closed defect (invalid)
django-admin.py install projectname fails in some queries
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | contrib.admin | Version: | 0.90 |
| Severity: | major | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
e.g. INSERT INTO auth_permissions (name, package, codename) VALUES (...) fails when name is longer than 50 characters.
In INSERT INTO content_types (name, package, python_module_name) VALUES(...) value of field name is not escaped! The query fails if name contain an apostrophe.
Note:
See TracTickets
for help on using tickets.
Marking as invalid due to the age of this ticket and as I think the first issue has been fixed, whilst the second one, well, field names should not have apostrophes in them anyway.