summaryrefslogtreecommitdiff
path: root/django/db/backends
AgeCommit message (Collapse)Author
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-27Fixed #20571 -- Added an API to control connection.needs_rollback.Aymeric Augustin
This is useful: - to force a rollback on the exit of an atomic block without having to raise and catch an exception; - to prevent a rollback after handling an exception manually.
2013-06-26Fixed #20462 - Replaced the str() cast introduced in 273dc55 by force_text()Loic Bistuer
2013-06-26Fixed #20462 -- null/non-string regex lookups are now consistentAndrew Clark
Thanks to noirbizarre for the report and initial patch.
2013-06-22Fixed #20587 -- Made convert_values handle None valuesGilberto Gonçalves
2013-06-20Add operation that renames tablesAndrew Godwin
2013-06-19Removed several unused imports.Aymeric Augustin
2013-06-19Fix test running with new apps stuff/migrate actually running migrationsAndrew Godwin
2013-06-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/loading.py
2013-06-11Revert "Fixed #20462 - Fixed sqlite regex lookups for null values and ↵Tim Graham
non-string fields." This reverts commit 64041f0e6e7a773574d7cde978d16305200004ea. lookup.tests.LookupTests.test_regex_non_string fails under Postgres. We should also try to rewrite the test using an existing model.
2013-06-11Fixed #20462 - Fixed sqlite regex lookups for null values and non-string fields.Axel Haustant
2013-06-10Added a stealth option to flush to allow cascades.Aymeric Augustin
This allows using flush on a subset of the tables without having to manually cascade to all tables with foreign keys to the tables being truncated, when they're known to be empty. On databases where truncate is implemented with DELETE FROM, this doesn't make a difference. The cascade is allowed, not mandatory.
2013-06-07Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/fields/related.py
2013-05-29Start adding operations that work and tests for themAndrew Godwin
2013-05-27Fixed #20014 -- implemented get_key_columns() for OracleShai Berger
Thanks Aymeric Augustin for reporting
2013-05-27Fixed #20501 -- failure of datetime queries with timezones under OracleShai Berger
2013-05-27Fixed #20507 -- SubqueryConstraint alias handlingAnssi Kääriäinen
MySQL should work now, too.
2013-05-26Replaced `and...or...` constructs with PEP 308 conditional expressions.Ramiro Morales
2013-05-22Fixed #20012 -- test_year_lookup_edge_case fails under OracleShai Berger
Used formatted date instead of datetime object for the end of the year range, as the datetime object loses fractions-of-seconds when inserted into the db.
2013-05-22Fixed #20015 -- date__startswith('2008') fails under OracleShai Berger
Removed the explicit casting of strings to dates
2013-05-22Fixed #20453 -- inspectdb test failure on OracleShai Berger
2013-05-21(Re-)moved some importsClaude Paroz
2013-05-19Fixed test failures with Oracle when pytz isn't installed.Aymeric Augustin
Thanks Shai Berger for the report.
2013-05-19Merge pull request #1160 from erikr/host-inet-postgres2Aymeric Augustin
Fixed #11442 -- Postgresql backend casts all inet types to text
2013-05-19Fixed #11442 -- Postgresql backend casts all inet types to textErik Romijn
2013-05-19Merge pull request #1028 from manfre/patch-2Aymeric Augustin
Fixed #20340 - document required return value for disable_constraint_checking
2013-05-18Fixed #20386 - Introspection problem on OracleShai Berger
Made introspection always return a unicode as column name on Oracle. Thanks aaugustin for review and suggestion to use force_text().
2013-05-18More conversion to a ContextManager schema_editorAndrew Godwin
2013-05-18Turn SchemaEditor into a context managerAndrew Godwin
2013-05-10Merge branch 'master' into schema-alterationAndrew Godwin
2013-05-09Split out a BaseAppCache, make AppCache borg again, add _meta.app_cacheAndrew Godwin
2013-05-08[py3] Stopped iterating on exceptions. Refs #20025.Aymeric Augustin
2013-05-08Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.Aymeric Augustin
Made a few minor compatibility adjustments.
2013-05-08Fixed test failures on MySQL.Aymeric Augustin
Some tests failed when the time zone definitions were loaded in MySQL and pytz wasn't installed. This setup isn't supported.
2013-04-24Fixed documentation of disable_constraint_checkingMichael Manfre
The docstring and base implementation of disable_constraint_checking do not indicate that a return value is expected for proper behavior.
2013-04-19Fix schema editor interaction with new transactionsAndrew Godwin
2013-04-18Merge branch 'master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/__init__.py django/db/backends/mysql/base.py django/db/backends/oracle/base.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/base.py django/db/backends/sqlite3/base.py django/db/models/fields/related.py
2013-04-01Fixed #16737 -- Support non-ascii column names in inspectdbClaude Paroz
Thanks moof at metamoof.net for the report.
2013-04-01Fixed getting max_digits for MySQL decimal fieldsClaude Paroz
Refs #5014.
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-24Fixed #19385 again, now with real code changesAnssi Kääriäinen
The commit of 266de5f9ae9e9f2fbfaec3b7e4b5fb9941967801 included only tests, this time also code changes included...
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-18Fixed #19968 -- Dropped support for PostgreSQL < 8.4.Aymeric Augustin
2013-03-13Improved recovery when the connection is closed in an atomic block.Aymeric Augustin
2013-03-13Made atomic usable when autocommit is off.Aymeric Augustin
Thanks Anssi for haggling until I implemented this. This change alleviates the need for atomic_if_autocommit. When autocommit is disabled for a database, atomic will simply create and release savepoints, and not commit anything. This honors the contract of not doing any transaction management. This change also makes the hack to allow using atomic within the legacy transaction management redundant. None of the above will work with SQLite, because of a flaw in the design of the sqlite3 library. This is a known limitation that cannot be lifted without unacceptable side effects eg. triggering arbitrary commits.
2013-03-11Fixed #20010 -- Make sure `last_executed_query` contains it's associated ↵Simon Charette
parameters on Oracle. Also removed some unused imports.
2013-03-11Avoided closing the database connection within a transaction.Aymeric Augustin
Refs #9437.
2013-03-11Improved the API of set_autocommit.Aymeric Augustin
2013-03-11Added a safety net for developers messing with autocommit.Aymeric Augustin