mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Fixed #1482 -- Corrected 'SET NAMES' syntax for MySQL backend. Thanks, Geert Vanderkelen
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0690229a3b
commit
ba273d88ac
@ -66,7 +66,7 @@ class DatabaseWrapper:
|
||||
self.connection = Database.connect(**kwargs)
|
||||
cursor = self.connection.cursor()
|
||||
if self.connection.get_server_info() >= '4.1':
|
||||
cursor.execute("SET NAMES utf8")
|
||||
cursor.execute("SET NAMES 'utf8'")
|
||||
if settings.DEBUG:
|
||||
return util.CursorDebugWrapper(MysqlDebugWrapper(cursor), self)
|
||||
return cursor
|
||||
|
Loading…
x
Reference in New Issue
Block a user