MySQL backend and Fedora 7

6 views
Skip to first unread message

Malcolm Tredinnick

unread,
Jun 30, 2007, 11:02:26 PM6/30/07
to django...@googlegroups.com
A heads-up for anybody using Fedora 7 (and probably useful for those
hanging out answering questions on IRC, too):

Fedora recently updated the MySQLdb-python package to 1.2.2-2 and, in
the process, introduced a fairly annoying backwards incompatibility.
They changed MySQLdb.version_info to be a string (it's meant to be a
tuple). I've filed a ticket with Fedora
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246366 ), so
hopefully this will be fixed soon.

In the interim, if you are using the "mysql" backend, either avoid
updating MySQLdb-python to 1.2.2 (the 1.2.2-1 release had another bug,
so avoid that, too) or edit django/db/backends/mysql/base.py to remove
the version check at the top of the file (1.2.2 is clearly later than
1.2.1p2).

Regards,
Malcolm


--
If at first you don't succeed, destroy all evidence that you tried.
http://www.pointy-stick.com/blog/

Reply all
Reply to author
Forward
0 new messages