Opened 17 years ago
Closed 17 years ago
#5008 closed (duplicate)
in mysql backend the test for MySQLdb version fail
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | MySQL database backend Database.version_info MySQLdb | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On my platform:
import MySQLdb as Database
Database.version_info
(1, 2, 2, 'final', 0)
so the test in
db/backends/mysql/base.py
version = Database.version_info
if (version < (1,2,1) or (version[:3] == (1, 2, 1) and
(len(version) < 5 or version[3] != 'final' or version[4] < 2))):
raise ImportError, "MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.version
fail and raise an error, but I think the version of MySQLdb is right
Paolo Patruno
Note:
See TracTickets
for help on using tickets.
Are you on Fedora? This looks to be a duplicate of #4743