Django

Code

Ticket #7751 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

Don't assume that connection.autocommit is a callable

Reported by: leosoto Assigned to: nobody
Milestone: 1.0 beta Component: Uncategorized
Version: SVN Keywords: jython, db-be-api
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

Description

source:django/trunk/django/test/utils.py assumes that connection.autocommit is going to be a callable. This is not true for some backends where it is a property (basically all JDBC based backends, also PyODBC and cx_Oracle).

The attached patch fixes this by taking into account the case where autocommit is a property.

Attachments

autocommit.diff (0.7 kB) - added by leosoto on 07/14/08 16:57:56.

Change History

07/14/08 16:57:56 changed by leosoto

  • attachment autocommit.diff added.

07/17/08 08:24:06 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [7940]) Fixed #7751 -- Added check to allow for the fact that autocommit can be a property, rather than a function on certain database backends. Thanks to Leo Soto for the fix.


Add/Change #7751 (Don't assume that connection.autocommit is a callable)




Change Properties
Action