Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit ba273d88acb22a1b6160b7cbc883d0a0a9e376a6 1 parent 0690229
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/mysql/base.py
View
2  django/db/backends/mysql/base.py
@@ -66,7 +66,7 @@ def cursor(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.