#6935 closed (fixed)
inspectdb should handle table names with spaces.
| Reported by: | Adam Vandenberg | Owned by: | Jeremy Dunck |
|---|---|---|---|
| Component: | django-admin.py inspectdb | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Some databases allow tables with spaces in the name, assuming that these table names are properly quoted in queries. (MS Sql Server, for example.)
The table-name-to-python-class-name lambda in inspectdb isn't handling spaces, which is generating invalid python class names.
This patch address that issue.
Attachments (1)
Change History (7)
by , 18 years ago
| Attachment: | handle-table-name-spaces.diff added |
|---|
comment:1 by , 17 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
comment:3 by , 17 years ago
| milestone: | → 1.0 |
|---|
comment:4 by , 17 years ago
| Owner: | changed from to |
|---|
comment:5 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
#7285 is the same problem with field names and dashes.