summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
AgeCommit message (Collapse)Author
2015-09-22Fixed #24509 -- Added Expression support to SQLInsertCompilerAlex Hill
2015-09-18Refs #17785 -- Made docstring for sqlite3's get_relations() consistent with ↵Hynek Cernoch
other backends.
2015-09-17Refs #14091 -- Fixed connection.queries on SQLite.Aymeric Augustin
2015-09-10Enabled parallel testing by default in runtests.py.Aymeric Augustin
2015-09-09Cloned databases for running tests in parallel.Aymeric Augustin
2015-07-15Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject ↵Tim Graham
field.
2015-06-27Fixed #24887 -- Removed one-arg limit from models.aggregateGreg Chapple
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-18Removed support for Python 3.3.Tim Graham
2015-06-06Imported sqlite3 instead of _sqlite3Sagar Mittal
adapt and ProgrammingError are both available on the sqlite3 module. There's no need to import the internal _sqlite3 module.
2015-06-04Fixed #22316 -- Added time filters to TimeField on SQLite.Matthew Somerville
This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187).
2015-06-02Fixed #9596 -- Added date transform for DateTimeField.Jon Dufresne
2015-05-17Fixed #23820 -- Supported per-database time zone.Aymeric Augustin
The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
2015-05-17Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin
This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
2015-05-17Removed global timezone-aware datetime adapters.Aymeric Augustin
Refs #23820. Fixed #19738. Refs #17755. In order not to introduce a regression for raw queries, parameters are passed through the connection.ops.value_to_db_* methods, depending on their type.
2015-05-17Normalized the implementation of get_db_converters.Aymeric Augustin
Put the types in the same order and checked for None consistently.
2015-05-17Removed global timezone-aware datetime converters.Aymeric Augustin
Refs #23820.
2015-05-04Allowed using the sqlite3 backend as much as possible without _sqlite3.Milan Broum
The inner import was dropped during the reorganizing of the database backends in commit 28308078f397d1de36fd0da417ac7da2544ba12d.
2015-04-14Fixed #24637 -- Fixed database introspection with SQLite 3.8.9.peterfarrell
2015-04-03Cleaned up use of context manager in SQLite schema editorAlex Hill
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-03-23Fixed #12400 -- Allowed geometry fields in unique_togetherClaude Paroz
Thanks Tim Graham for the review.
2015-03-21Explicitly disable FK constraints in SQLite editorAlex Hill
2015-03-21Safer table alterations under SQLiteAlex Hill
Table alterations in SQLite require creating a new table and copying data over from the old one. This change ensures that no Django model ever exists with the temporary table name as its db_table attribute.
2015-02-20Update converters to take a consistent set of parameters.Marc Tamlyn
As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
2015-02-17Refs #24324 -- Fixed UnicodeEncodeError in SQLite backend while testing.Tim Graham
If 'name' contained non-ASCII characters, the comparison raised a UnicodeEncodeError on Python 2.
2015-02-11Fixed isort import that's inconsistent between platforms.Loic Bistuer
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-31Fixed #24245 -- Added introspection for database defaults.Tim Graham
Needed for tests for migrations handling of database defaults.
2015-01-27Fixed #24154 -- Backends can now check support for expressionsJosh Smeaton
2015-01-22Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵Andriy Sokolovskiy
instance
2015-01-18Removed obsolete SQL generation methods.Tim Graham
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2015-01-10Introspected alternate SQLite FK definitionsClaude Paroz
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
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-31Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham
refs #22340.
2014-12-30Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy
2014-12-23Refs #2443 -- fixed format_dtdelta on SQLiteAnssi Kääriäinen
A test failed on Python 2 32-bit.
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-12Fixed #23941 -- Removed implicit decimal formatting from expressions.Josh Smeaton
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
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-15Fixed #14030 -- Allowed annotations to accept all expressionsJosh Smeaton
2014-10-23Fixed #23702 -- Fixed adding an explicit id field on SQLite.Tim Graham
Thanks gavinwahl for the report.
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-26Factorized schema_editor() at BaseDatabaseWrapper levelClaude Paroz