﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26613	SQLite3 DB backend should remove dependency on sqlite3 module	Gatzy118	Philip Liberato	"Given Django tries to use pysqlite2 by default anyway, would it be reasonably to change in django.db.backends.sqlite3.schema this:

{{{  
   35     def quote_value(self, value):
   36         # The backend ""mostly works"" without this function and there are use
   37         # cases for compiling Python without the sqlite3 libraries (e.g.
   38         # security hardening).
   39         import sqlite3
   40         try:
   41             value = sqlite3.adapt(value)
   42         except sqlite3.ProgrammingError:
   43             pass
   44         # Manual emulation of SQLite parameter quoting
   45         if isinstance(value, type(True)):
...
}}}

Into this:

{{{
 41         try:
 42             import sqlite3
 43             value = sqlite3.adapt(value)
 44         except ImportError:
 45             pass
 46         except sqlite3.ProgrammingError:
 47             pass
 48         # Manual emulation of SQLite parameter quoting
 49         if isinstance(value, type(True)):
...
}}}"	Bug	closed	Database layer (models, ORM)	1.9	Normal	fixed			Accepted	1	0	0	0	1	0
