﻿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
12565	PostgresSQL does not rollback transactions from database errors.	abhik	nobody	"When I decorate a function with @transaction.commit_on_success and an IntegrityError is thrown inside it, the transaction is not closed. I would expect it to rollback.

For instance, if I have a model with a unique_together constraint and violate that constraint in the function an IntegrityError is thrown. When I catch the IntegrityError outside the function and try to execute a select, PostgresSQL complains.  From some initial debugging, is_dirty in the transaction module is not True for the function, so nothing is done to the transaction."		closed	Database layer (models, ORM)	1.1		duplicate	transaction rollback		Unreviewed	0	0	0	0	0	0
