Ticket #3030: 3030.diff
File 3030.diff, 751 bytes (added by , 16 years ago) |
---|
-
django/db/backends/mysql/base.py
154 154 def __init__(self, **kwargs): 155 155 super(DatabaseWrapper, self).__init__(**kwargs) 156 156 self.server_version = None 157 # MySQL servers version 5++ creates implied PK and/or FK indeces 158 # (what behaveour was before version 5 I don't know/ don't care) 159 self.server_version = self.get_server_version() 160 self.features.autoindexes_primary_keys = self.server_version and (self.server_version[0]>=5) 157 161 158 162 def _valid_connection(self): 159 163 if self.connection is not None: