From ba273d88acb22a1b6160b7cbc883d0a0a9e376a6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 13 Mar 2006 00:41:49 +0000 Subject: [PATCH] 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 --- django/db/backends/mysql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 4594c07dc0..22007b673f 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -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