﻿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
22626	SQLite's DatabaseSchemaEditor.quote_value trips on buffer and memoryview instances	loic84	Raphaël Barrois	"Since e9a456d11b5b63389b466ed435ef3915f0e79e4c  default values for migrations go through `get_db_prep_save()` which in case of `BinaryField` results in `buffer` (PY2) or `memoryview` (PY3) instances. This causes a `ValueError` since `quote_value()` doesn't specifically support these types: https://github.com/django/django/blob/master/django/db/backends/sqlite3/schema.py#L32.

The test case for #22424 (https://github.com/django/django/pull/2634) demonstrates the issue.

Dunno if it's relevant but the Oracle backend falls back to `str` rather than raising an exception: https://github.com/django/django/blob/master/django/db/backends/oracle/schema.py#L28"	Bug	closed	Database layer (models, ORM)	1.7-beta-2	Release blocker	fixed		Andrew Godwin	Ready for checkin	1	0	0	0	0	0
