[django/django] 0837ea: Made SQLCompiler.execute_sql(result_type) more exp...

5 views
Skip to first unread message

GitHub

unread,
Feb 2, 2014, 1:37:28 PM2/2/14
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 0837eacc4e1fa7916e48135e8ba43f54a7a64997
https://github.com/django/django/commit/0837eacc4e1fa7916e48135e8ba43f54a7a64997
Author: Michael Manfre <mma...@gmail.com>
Date: 2014-02-02 (Sun, 02 Feb 2014)

Changed paths:
M django/db/models/query.py
M django/db/models/sql/compiler.py
M django/db/models/sql/constants.py
M django/db/models/sql/subqueries.py
M tests/backends/tests.py

Log Message:
-----------
Made SQLCompiler.execute_sql(result_type) more explicit.

Updated SQLUpdateCompiler.execute_sql to match the behavior described in
the docstring; the 'first non-empty query' will now include all queries,
not just the main and first related update.

Added CURSOR and NO_RESULTS result_type constants to make the usages more
self documenting and allow execute_sql to explicitly close the cursor when
it is no longer needed.


Commit: 3ffeb931869cc68a8e0916219702ee282afc6e9d
https://github.com/django/django/commit/3ffeb931869cc68a8e0916219702ee282afc6e9d
Author: Michael Manfre <mma...@gmail.com>
Date: 2014-02-02 (Sun, 02 Feb 2014)

Changed paths:
M django/contrib/gis/db/backends/postgis/creation.py
M django/contrib/gis/db/backends/spatialite/creation.py
M django/contrib/sites/management.py
M django/core/cache/backends/db.py
M django/core/management/commands/createcachetable.py
M django/core/management/commands/flush.py
M django/core/management/commands/inspectdb.py
M django/core/management/commands/loaddata.py
M django/core/management/commands/migrate.py
M django/core/management/sql.py
M django/db/backends/__init__.py
M django/db/backends/creation.py
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/postgresql_psycopg2/version.py
M django/db/backends/schema.py
M django/db/backends/sqlite3/base.py
M django/db/models/query.py
M django/db/models/sql/compiler.py
M tests/backends/tests.py
M tests/cache/tests.py
M tests/custom_methods/models.py
M tests/initial_sql_regress/tests.py
M tests/introspection/tests.py
M tests/migrations/test_base.py
M tests/migrations/test_operations.py
M tests/requests/tests.py
M tests/schema/tests.py
M tests/transactions/tests.py
M tests/transactions_regress/tests.py

Log Message:
-----------
Ensure cursors are closed when no longer needed.

This commit touchs various parts of the code base and test framework. Any
found usage of opening a cursor for the sake of initializing a connection
has been replaced with 'ensure_connection()'.


Commit: 54bfa4caab11d364eb208ba6639836fa22d69a04
https://github.com/django/django/commit/54bfa4caab11d364eb208ba6639836fa22d69a04
Author: Aymeric Augustin <aymeric....@m4x.org>
Date: 2014-02-02 (Sun, 02 Feb 2014)

Changed paths:
M django/contrib/gis/db/backends/postgis/creation.py
M django/contrib/gis/db/backends/spatialite/creation.py
M django/contrib/sites/management.py
M django/core/cache/backends/db.py
M django/core/management/commands/createcachetable.py
M django/core/management/commands/flush.py
M django/core/management/commands/inspectdb.py
M django/core/management/commands/loaddata.py
M django/core/management/commands/migrate.py
M django/core/management/sql.py
M django/db/backends/__init__.py
M django/db/backends/creation.py
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/postgresql_psycopg2/version.py
M django/db/backends/schema.py
M django/db/backends/sqlite3/base.py
M django/db/models/query.py
M django/db/models/sql/compiler.py
M django/db/models/sql/constants.py
M django/db/models/sql/subqueries.py
M tests/backends/tests.py
M tests/cache/tests.py
M tests/custom_methods/models.py
M tests/initial_sql_regress/tests.py
M tests/introspection/tests.py
M tests/migrations/test_base.py
M tests/migrations/test_operations.py
M tests/requests/tests.py
M tests/schema/tests.py
M tests/transactions/tests.py
M tests/transactions_regress/tests.py

Log Message:
-----------
Merge pull request #2154 from manfre/close-cursors

Fixed #21751 -- Explicitly closed cursors.


Compare: https://github.com/django/django/compare/ab2f21080d8b...54bfa4caab11
Reply all
Reply to author
Forward
0 new messages