Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#321 closed defect (fixed)

Revision 494 breaks MySQL

Reported by: anonymous Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version:
Severity: blocker Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Immediately after upgrading to [494], the MySQL backend has stopped functioning. Django reports the following error:

ImproperlyConfigured: Could not load database backend: cannot import name CursorNW. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled correctly? Available options are: 'mysql', 'postgresql', 'sqlite3'

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Status: newassigned

What version of MySQLdb are you using?

Try this in the Python interactive prompt:

from MySQLdb.cursors import CursorNW

It appears you're using a version of MySQLdb that doesn't support CursorNW. I'm using 0.9.2, and it works here.

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: assignedclosed

(In [495]) Fixed #321 -- Undid [494], which assumed the installed version of MySQLdb had a 'cursors.CursorNW'. Thanks for being consistent, MySQLdb. This opens #316 again.

Note: See TracTickets for help on using tickets.
Back to Top