mirror of
https://github.com/django/django.git
synced 2025-06-10 05:59:13 +00:00
magic-removal: Fixed bug in mysql backend with DEBUG=True
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
05c3097f0f
commit
f1cf65c7bc
@ -68,7 +68,7 @@ class DatabaseWrapper:
|
||||
if self.connection.get_server_info() >= '4.1':
|
||||
cursor.execute("SET NAMES utf8")
|
||||
if settings.DEBUG:
|
||||
return base.CursorDebugWrapper(MysqlDebugWrapper(cursor), self)
|
||||
return util.CursorDebugWrapper(MysqlDebugWrapper(cursor), self)
|
||||
return cursor
|
||||
|
||||
def commit(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user