﻿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
27813	BinaryField type inconsistent between sqlite3 (bytes) and postgresql (memoryview)	Antonio Terceiro	nobody	"I have an application that has the following model:

{{{
class Attachment(models.Model):
    # ...
    data = models.BinaryField(default=None)
}}}

under sqlite3:

{{{
In [1]: Attachment.objects.last().data
Out[1]: b'Mon Feb  6 16:53:37 UTC 2017\n'
}}}

under postgresql:

{{{
In [1]: Attachment.objects.last().data
Out[1]: <memory at 0x7f1ae8e93108>
}}}

i.e. under sqlite the BinaryField values comes as bytes(), and under postgresql it comes as memoryview()"	Bug	closed	Database layer (models, ORM)	3.1	Normal	wontfix		Egor R Ryan Cheley	Accepted	0	0	0	0	0	0
