summaryrefslogtreecommitdiff
path: root/tests/backends
AgeCommit message (Collapse)Author
2013-08-02[1.6.x] Fixed #17519 -- Fixed missing SQL constraints to proxy models.Tim Graham
Thanks thibaultj for the report, jenh for the patch, and charettes for the tests. Backport of aa830009de from master
2013-07-09Avoided transaction.set_autocommit in tests.Aymeric Augustin
It doesn't work as one might expect on a certain database backend where autocommits_when_autocommit_is_off = True. That backend happens to be popular for running tests. Backport of 38bc581bc02d83ecab6d19514ac51b57f0e11866 from master.
2013-06-29[1.6.x] Fixed #18592 -- Prevented crash when accessing MySQL _last_executedClaude Paroz
Thanks reames at asymmetricventures.com for the report. Backport of 59b0c48ce from master.
2013-06-28Support 'pyformat' style parameters in raw queries, Refs #10070Shai Berger
Add support for Oracle, fix an issue with the repr of RawQuerySet, add tests and documentations. Also added a 'supports_paramstyle_pyformat' database feature, True by default, False for SQLite. Thanks Donald Stufft for review of documentation.
2013-06-22Fixed #20587 -- Made convert_values handle None valuesGilberto Gonçalves
2013-06-10Defined available_apps in relevant tests.Aymeric Augustin
Fixed #20483.
2013-05-23Fixed #20474 -- Proxied and deprecated django.db.backendClaude Paroz
2013-05-21Use assertIsInstance in tests.Marc Tamlyn
Gives much nicer errors when it fails.
2013-05-16Fixed #20388 -- Test failures under Oracle.Shai Berger
Add "FROM DUAL" to SQL selecting constants in tests for Oracle.
2013-03-31Fixed #19220 -- Prevented decimals to be displayed in scientific notationClaude Paroz
Thanks nebstrebor for the report and antofik for the patch.
2013-03-28Fixed #19954 -- Fixed MySQL _last_executed decodingClaude Paroz
Queries can contain binary data undecodable with utf-8. In this case, using the 'replace' errors mode when decoding seems like an acceptable representation of the query. Thanks Marcel Ryser for the report.
2013-03-23Fixed #9055 -- Standardized behaviour of parameter escaping in db cursorsClaude Paroz
Previously, depending on the database backend or the cursor type, you'd need to double the percent signs in the query before passing it to cursor.execute. Now cursor.execute consistently need percent doubling whenever params argument is not None (placeholder substitution will happen). Thanks Thomas Güttler for the report and Walter Doekes for his work on the patch.
2013-03-11Ran a test that closes the database connection outside of a transaction.Aymeric Augustin
2013-03-11Improved the API of set_autocommit.Aymeric Augustin
2013-03-11Added some assertions to enforce the atomicity of atomic.Aymeric Augustin
2013-03-11Enabled autocommit for PostgreSQL.Aymeric Augustin
For users who didn't activate autocommit in their database options, this is backwards-incompatible in "non-managed" aka "auto" transaction state. This state now uses database-level autocommit instead of ORM-level autocommit. Also removed the uses_autocommit feature which lost its purpose.
2013-03-07Added a ManyToManyField(db_constraint=False) option, this allows not ↵Alex Gaynor
creating constraints on the intermediary models.
2013-02-27Fixed a test that relied on database exceptions not being wrapped.Aymeric Augustin
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner