mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed #2827 -- Reverted [3855]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b019331f44
commit
38d80f8894
3 changed files with 1 additions and 20 deletions
|
@ -13,7 +13,6 @@ except ImportError, e:
|
|||
from MySQLdb.converters import conversions
|
||||
from MySQLdb.constants import FIELD_TYPE
|
||||
import types
|
||||
import re
|
||||
|
||||
DatabaseError = Database.DatabaseError
|
||||
|
||||
|
@ -25,8 +24,6 @@ django_conversions.update({
|
|||
FIELD_TYPE.TIME: util.typecast_time,
|
||||
})
|
||||
|
||||
server_version_re = re.compile('[.-]')
|
||||
|
||||
# This is an extra debug layer over MySQL queries, to display warnings.
|
||||
# It's only used when DEBUG=True.
|
||||
class MysqlDebugWrapper:
|
||||
|
@ -114,14 +111,6 @@ class DatabaseWrapper(local):
|
|||
self.connection.close()
|
||||
self.connection = None
|
||||
|
||||
def get_server_version(self):
|
||||
if not self.server_version:
|
||||
if not self._valid_connection():
|
||||
self.cursor()
|
||||
version = server_version_re.split(self.connection.get_server_info())
|
||||
self.server_version = tuple([int(x) for x in version[:3]]) + tuple(version[3:])
|
||||
return self.server_version
|
||||
|
||||
supports_constraints = True
|
||||
|
||||
def quote_name(name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue