Code

Opened 7 years ago

Closed 7 years ago

#5242 closed (fixed)

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

Reported by: Filip Wasilewski <filip.wasilewski@…> Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords: syncdb
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (1)

syncdb.patch (833 bytes) - added by Filip Wasilewski <filip.wasilewski@…> 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Filip Wasilewski <filip.wasilewski@…>

comment:1 Changed 7 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.