summaryrefslogtreecommitdiff
path: root/django/db/backends
AgeCommit message (Collapse)Author
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-31Copied BaseDatabaseCreation._digest() to SchemaEditor to remove dependency.Tim Graham
refs #22340.
2014-12-31Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham
refs #22340.
2014-12-30Removed db.backends methods which only call super().Tim Graham
2014-12-30Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy
2014-12-30Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.Tim Graham
Thanks john_scott for the report and Markus Holtermann for review.
2014-12-29Fixed #22279 -- Prevented dummy backend going through DatabaseErrorWrapperClaude Paroz
Thanks Daniel Hahler for the report and Tim Graham for the review.
2014-12-27Fixed #14180 -- Prevented unneeded index creation on MySQL-InnoDBClaude Paroz
Thanks zimnyx for the report and Simon Charette, Tim Graham for the reviews.
2014-12-27Fixed #23753 -- Added a suite of SQL FunctionsJosh Smeaton
Added functions and tests Added docs and more tests Added TextField converter to mysql backend Aliased Value as V in example docs and tests Removed unicode_compatible in example Fixed console emulation in examples
2014-12-23Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz
Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
2014-12-23Refs #2443 -- fixed format_dtdelta on SQLiteAnssi Kääriäinen
A test failed on Python 2 32-bit.
2014-12-23Refs #2443 -- Move the durationfield converter logic.Marc Tamlyn
This reduces how frequently this logic is run significantly. Thanks to Anssi for the suggestion.
2014-12-23Fixed #24033 -- Use interval type on Oracle.Marc Tamlyn
Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than storing as a NUMBER(19) of microseconds. There are issues with cx_Oracle which require some extra data manipulation in the database backend when constructing queries, but it handles the conversion back to timedelta objects cleanly. Thanks to Shai for the review.
2014-12-20Refs #2443 -- Fix Oracle tests for DurationField.Marc Tamlyn
It helps if there are the correct number of microseconds in a second.
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
2014-12-15Fixed #23987 -- Made SQLite SchemaEditor always use effective_default().Andriy Sokolovskiy
2014-12-15Fixed #23991 -- Apparently, Oracle doesn't need the decimal field converterShai Berger
Thanks Josh Smeaton for review.
2014-12-12Fixed postgis test database initializationClaude Paroz
Refs #20968. Allow querying template_postgis presence without existing test database. Thanks Tim Graham for the review.
2014-12-12Fixed #23941 -- Removed implicit decimal formatting from expressions.Josh Smeaton
2014-12-08Fixed #20968 -- Checked Spatialite metadata before migrationsClaude Paroz
Thanks Kenial S. Lee for the initial patch and Tim Graham for the review.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-04Fixed #23954 -- Added special text/varchar PostgreSQL indexes in migrationsClaude Paroz
Thanks adityagupta104 for the report and Tim Graham for the review.
2014-12-04Fixed #23920 -- Fixed MySQL crash when adding blank=True to TextField.Tim Graham
Thanks wkornewald for the report and Markus Holtermann for review.
2014-12-01Fixed #23807 -- Ignored non-digits in psycopg2 versionAndriy Sokolovskiy
2014-12-01Fixed #23909 -- Prevented crash when collecting SQL for RunSQLClaude Paroz
Thanks James Rivett-Carnac for the report and Markus Holtermann for the review.
2014-12-01Fixed #23880 -- Added missing index_together handling for SQLiteMarkus Holtermann
2014-11-28Fixed #16731 -- Made pattern lookups work properly with F() expressionsThomas Chaumeny
2014-11-26Fixed #23867 -- removed DateQuerySet hacksAnssi Kääriäinen
The .dates() queries were implemented by using custom Query, QuerySet, and Compiler classes. Instead implement them by using expressions and database converters APIs.
2014-11-21Fixed #23889 -- Added more usage of quote_name_unless_alias() to avoid ↵Collin Anderson
deprecation warnings.
2014-11-20Reduced reduce() usage; refs #23796.Brad Walker
django.core.exceptions.ValidationError.messages() and django.db.backends.schema.BaseDatabaseSchemaEditor._alter_field(): Replaced reduce(operator.add, ...) w/uncoupled, explicit sum()
2014-11-20Added AutoField introspection for PostgreSQLClaude Paroz
Refs #23748.
2014-11-20Added AutoField introspection for MySQLClaude Paroz
Refs #23748.
2014-11-19Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode.Tim Graham
2014-11-15Fixed #14030 -- Allowed annotations to accept all expressionsJosh Smeaton
2014-11-10Simplified MySQL storage engine detection using INFORMATION_SCHEMA.ENGINES tableThomas Chaumeny
Query the table introduced in MySQL 5.1; refs #23144.
2014-10-31Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same ↵Markus Holtermann
default value Thanks to Andrey Antukh for the report.
2014-10-28Required MySQLdb >= 1.2.5 for fractional seconds supportClaude Paroz
On MySQLdb < 1.2.5, MySQLdb returns None when fetching datetime/time values with fractional seconds. See https://github.com/farcepest/MySQLdb1/issues/24
2014-10-28Fixed #19716 -- Added support for microseconds with MySQL 5.6.4 and upClaude Paroz
Thanks erik@cederstrand.dk for the report and Tim Graham for the review.
2014-10-28Stopped stripping microseconds with MySQL backendClaude Paroz
Refs #19716.
2014-10-27Fixed typo in MySQL backend doctringClaude Paroz
Thanks CHI Cheng for the report.
2014-10-27Fixed #22879 -- Intercept errors coming from cursor.__next__()Mikhail Denisenko
2014-10-27Fixed #23446 -- Officially recommended mysqlclient as MySQL driverClaude Paroz
Thanks Corey Farwell for the report and Tim Graham for the review. Thanks also to Inada Naoki for creating and maintaining mysqlclient.
2014-10-24Fixed #23652 -- Restored database name after destroying test databaseClaude Paroz
Thanks Bjarkias for the report.
2014-10-23Fixed #23702 -- Fixed adding an explicit id field on SQLite.Tim Graham
Thanks gavinwahl for the report.
2014-10-17Fixed #23649 -- Made Oracle test-db creation drop test-user earlier when neededShai Berger
Checked database destruction for ORA-29857, which happens when objects of some types are left over in an old test database (notably, such objects are created by the GIS backend). When this happens, we can resolve the issue by dropping the test-user (if we are allowed to). An alternative approach, to just switch the order of creation (so that, if the test user exists and can be dropped, it is always dropped before the tablespace) was considered; but since the user creation depends on the tablespace, this would necessitate separating the dropping of the user from its creation -- a change I am reluctant to make. Thanks Josh Smeaton and Tim Graham for reviews.
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-10-09Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column ↵Markus Holtermann
into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-27Fixed git blunder, refs #22738Shai Berger
2014-09-27Fixed #22738 -- made finer distinctions for when Boolean is not detected on ↵Shai Berger
Oracle Thanks Claude Paroz for partial fix and Simon Charrette for review