Opened 9 years ago

Closed 9 years ago

#3775 closed (fixed)

mysql_old backend use mysql backend

Reported by: anonymous Owned by: adrian
Component: inspectdb Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: UI/UX:


Attachments (1)

mysql_old_patch.patch (407 bytes) - added by karsu 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by karsu

comment:1 Changed 9 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Can you provide more info about this? why is this needed? what does it do?

comment:2 Changed 9 years ago by karsu

I underestand that mysql_old is compatible support for people who can't upgrade MySQLdb immediately. Without this patch I can't use django with mysql with older version than MySQLdb-1.2.1p2.

If I try to use mysql_old and run python syncdb it will raise ImportError "MySQLdb-1.2.1p2 or newer is required;".

Problem is mysql_old '' imports from django.db.backends.mysql.base import quote_name not from django.db.backends.mysql_old.base import quote_name file.

comment:3 Changed 9 years ago by Michael Radziej <mir@…>

  • Component changed from Database wrapper to inspectdb
  • Has patch set
  • Patch needs improvement set
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Triage Stage changed from Unreviewed to Accepted

Ah ... and the patch is for the directory django/db/backends/mysql_old! That makes sense, but it wasn't at all obvious.

Please provide a little bit more background when you write a ticket. As we don't see
what you're doing, it's sometimes hard to understand. Also, patches should contain
the full path from the django source directory, so there's no doubt about which directory
you mean.

I checked 'patch needs improvement' since the patch should really have the full path before
core developers deal with it.

comment:4 Changed 9 years ago by mtredinnick

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

Fixed in [4768]. Thanks.

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