Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #321 -- Undid [494], which assumed the installed version of MyS…

…QLdb had a 'cursors.CursorNW'. Thanks for being consistent, MySQLdb. This opens #316 again.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bf108187a2a1d36bf7b0a61575b331386043507e 1 parent a9b43ed
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 django/core/db/backends/mysql.py
View
4 django/core/db/backends/mysql.py
@@ -9,7 +9,6 @@
import MySQLdb as Database
from MySQLdb.converters import conversions
from MySQLdb.constants import FIELD_TYPE
-from MySQLdb.cursors import CursorNW # Ignores MySQL warnings.
import types
DatabaseError = Database.DatabaseError
@@ -31,8 +30,7 @@ def cursor(self):
from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PASSWORD, DEBUG
if self.connection is None:
self.connection = Database.connect(user=DATABASE_USER, db=DATABASE_NAME,
- passwd=DATABASE_PASSWORD, host=DATABASE_HOST, conv=django_conversions,
- cursorclass=CursorNW)
+ passwd=DATABASE_PASSWORD, host=DATABASE_HOST, conv=django_conversions)
if DEBUG:
return base.CursorDebugWrapper(self.connection.cursor(), self)
return self.connection.cursor()
Please sign in to comment.
Something went wrong with that request. Please try again.