Opened 17 years ago

Closed 16 years ago

Last modified 13 years ago

#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)

handle-table-name-spaces.diff (614 bytes ) - added by Adam Vandenberg 17 years ago.

Download all attachments as: .zip

Change History (7)

by Adam Vandenberg, 17 years ago

comment:1 by Marc Fargas, 16 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 by anonymous, 16 years ago

#7285 is the same problem with field names and dashes.

comment:3 by Jeremy Dunck, 16 years ago

milestone: 1.0

comment:4 by Jeremy Dunck, 16 years ago

Owner: changed from nobody to Jeremy Dunck

comment:5 by Russell Keith-Magee, 16 years ago

Resolution: fixed
Status: newclosed

(In [8403]) Fixed #6935: Modified inspectdb to provide better handling for table names with spaces. Thanks to adamv for the report and patch.

comment:6 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top