Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 1893467784deb6cd8a493997e8bac933cc2e4af9
https://github.com/django/django/commit/1893467784deb6cd8a493997e8bac933cc2e4af9
Author: Anssi Kääriäinen <[email protected]>
Date: 2012-11-27 (Tue, 27 Nov 2012)
Changed paths:
M django/db/backends/mysql/base.py
M django/db/backends/oracle/base.py
M django/db/backends/postgresql_psycopg2/base.py
M django/db/backends/sqlite3/base.py
Log Message:
-----------
Fixed #19274 -- Made db connection creation overridable in subclasses
Connection creation was done in db backend ._cursor() call. This
included taking a new connection if needed, initializing the session
state for the new connection and finally creating the connection.
To allow easier modifying of these steps in subclasses (for example to
support connection pools) the _cursor() now calls get_new_connection()
and init_connection_state() if there isn't an existing connection. This
was done for all non-gis core backends. In addition the parameters used
for taking a connection are now created by get_connection_params().
We should also do the same for gis backends and encourage 3rd party
backends to use the same pattern. The pattern is not enforced in code,
and as the backends are private API this will not be required by
documentation either.
Commit: 905ea9619b871ded3204b1d0deb7e6fb9b081679
https://github.com/django/django/commit/905ea9619b871ded3204b1d0deb7e6fb9b081679
Author: Anssi Kääriäinen <[email protected]>
Date: 2012-11-27 (Tue, 27 Nov 2012)
Changed paths:
M django/db/backends/creation.py
M django/db/backends/oracle/creation.py
Log Message:
-----------
Made sure global settings are changed in test db creation
There was an assumption that changing connection.settings_dict changed
also the settings.DATABASES values. This assumption is now gone.
Commit: 64f6e0370a8d8d2c088f189b622fa4b0726f41b5
https://github.com/django/django/commit/64f6e0370a8d8d2c088f189b622fa4b0726f41b5
Author: Anssi Kääriäinen <[email protected]>
Date: 2012-11-27 (Tue, 27 Nov 2012)
Changed paths:
M tests/regressiontests/backends/tests.py
M tests/regressiontests/delete_regress/tests.py
Log Message:
-----------
Made some tests behave nicer re connection handling
Commit: 86644e065fbde410aa32e052e206d1c53a916fd3
https://github.com/django/django/commit/86644e065fbde410aa32e052e206d1c53a916fd3
Author: Anssi Kääriäinen <[email protected]>
Date: 2012-11-27 (Tue, 27 Nov 2012)
Changed paths:
M django/contrib/gis/db/backends/spatialite/base.py
Log Message:
-----------
Refactored gis/spatialite connection initialization
The connection state is now initialized in get_new_connection().
Refs #19274.
Compare: https://github.com/django/django/compare/2ea80b94d7f6...86644e065fbd
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.