#3747: Changeset [4724] MySQLdb versioncheck not working
-----------------------+----------------------------------------------------
Reporter:  derelm      |       Owner:  adrian          
  Status:  new         |   Component:  Database wrapper
 Version:  SVN         |    Keywords:                  
   Stage:  Unreviewed  |   Has_patch:  0               
-----------------------+----------------------------------------------------
 {{{
 # django/db/backends/mysql/base.py
 import MySQLdb as Database
 #[...]
 if Database.version_info < (1,2,1,'final',2):
             raise ImportError, "MySQLdb-1.2.1p2 or newer is required; you
 have %s" % MySQLdb.__version__
 }}}
 
 Debian Sarge comes with MySQLdb 1.2.1.g2 but the check effectively doesn't
 kick in.
 {{{
 >>> (1,2,1,'gamma',2) < (1,2,1,'final',2)
 False
 }}}
 
 Also MySQLdb has been imported as Database so the Error raised needs to be
 {{{
 raise ImportError, "MySQLdb-1.2.1p2 or newer is required; you have %s" %
 Database.__version__
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3747>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to