Django

Code

Ticket #5242 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Table name matching fails during syncdb for dbs with case sensitive names.

Reported by: Filip Wasilewski <filip.wasilewski@gmail.com> Assigned to: nobody
Milestone: Component: django-admin.py
Version: SVN Keywords: syncdb
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The manager fails to synchronize db when the connection.features.uses_case_insensitive_names option is set but the db backend returns table_list that contains lower case names.

Attached is a patch that applies the same converter function to the table_list elements as to the model._meta.db_table in the existence check. It also works with Unicode names.

Attachments

syncdb.patch (0.8 kB) - added by Filip Wasilewski <filip.wasilewski@gmail.com> on 08/24/07 06:11:41.

Change History

08/24/07 06:11:41 changed by Filip Wasilewski <filip.wasilewski@gmail.com>

  • attachment syncdb.patch added.

08/24/07 16:20:59 changed by SmileyChris

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

09/15/07 11:19:10 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [6291]) Fixed #5242 -- Fixed table processing for some databases with case insensitive tables. Patch from Filip Wasilewski.


Add/Change #5242 (Table name matching fails during syncdb for dbs with case sensitive names.)




Change Properties
Action