1. Ed Crewe
  2. django-oraclepool
  3. Pull requests

Pull requests

#1 Merged
Repository
brentwatson
Branch
default
Repository
edcrewe
Branch
default

Support for multiple databases in settings.DATABASES & close() changes to avoid ORA-03114 Errors

Author
  1. Brent Watson
Reviewers
Description

Change #1:

The existing code required "EXTRAS" to be defined under your 'default' database configuration.

This patch allows you to setup a 'oraclepool' under something other than 'default' if your application defines more than 1 database in settings.DATABASES.

For example: 'default' can now be a local mysql database, 'mycorpdb' can be a remote oracle db, and 'mycorpdb2' can be a 2nd oracle db with different settings in it's own EXTRAS config dictionary.

Change #2:

Fix to close() function. Was causing "ORA-03114: not connected to ORACLE" if connections were broken.

Comments (1)