﻿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
5063	PostgreSQL connection close when using model with a  OneToOneField and a ManyToManyField	John Shaffer <jshaffer2112@…>	nobody	"I'm attaching models and tests files that raise unclear errors with r4610 (which is still the case with r5788), but raise straightforward errors with r4609. If you run the test code from within a Python shell, you'll see that at first clear error messages are given, but after a couple of errors the PostgreSQL connection is closed and you get {{{InterfaceError: connection already closed}}}. When run as a doctest, the !InterfaceError occurs before the straightforward error message is ever displayed.

This bug report is about the PostgreSQL connection close. This is the simplest models file that I was able to cause the error with.

I'm using psycopg2 2.0.6, PostgreSQL 8.2, Python 2.5, and Windows XP."	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	1	0	1	1	0	0
