| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
typecast on MySQL.
|
|
|
|
|
|
| |
test database messages.
Left over Oracle mostly as-is since it's more complicated.
|
|
|
|
| |
SQLInsertCompiler
|
|
|
|
| |
field with unhashable default.
|
| |
|
| |
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
|
|
|
| |
on MySQL.
|
| |
|
|
|
|
| |
all blob/text data types
|
|
|
|
| |
field renaming.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This mirrors convert_xxxfield_value nicely, taking advantage of the
adapter/converter terminology which is commonly used by DB-API modules.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Put the types in the same order and checked for None consistently.
|
|
|
|
| |
Refs #23820.
|
|
|
|
|
|
|
| |
combined index removal
Thanks Thomas Recouvreux for the report and Tim Graham for the tests and
review.
|
|
|
|
|
|
|
| |
field alteration
Thanks Simon Percivall for the report, and Simon Charette and Tim
Graham for the reviews.
|
|
|
|
| |
MySQLdb
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
DB backends
|
| |
|
| |
|
|
|
|
| |
Needed for tests for migrations handling of database defaults.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
introspection
Thanks Thomas Güttler for the report and the initial patch, and
Tim Graham for the review.
|
|
|
|
|
|
|
|
| |
support them
It was mainly for MySQL on Python 3, but now the current
recommended MySQL driver for Python 3 (mysqlclient) does support
binary fields, it is unneeded. Refs #20377.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
DatabaseWrapper.
refs #22340.
|
| |
|
|
|
|
|
|
|
| |
MySQL-InnoDB
Thanks zimnyx for the report and Simon Charette, Tim Graham for
the reviews.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
F() expressions
|
|
|
|
|
|
| |
The .dates() queries were implemented by using custom Query, QuerySet,
and Compiler classes. Instead implement them by using expressions and
database converters APIs.
|
|
|
|
| |
quote_name_unless_alias() to avoid deprecation warnings.
|
|
|
|
| |
Refs #23748.
|
|
|
|
| |
errors in DEBUG mode.
|
|
|
|
|
|
| |
INFORMATION_SCHEMA.ENGINES table
Query the table introduced in MySQL 5.1; refs #23144.
|
|
|
|
|
|
| |
On MySQLdb < 1.2.5, MySQLdb returns None when fetching datetime/time
values with fractional seconds.
See https://github.com/farcepest/MySQLdb1/issues/24
|
|
|
|
|
|
| |
MySQL 5.6.4 and up
Thanks erik@cederstrand.dk for the report and Tim Graham for the review.
|
|
|
|
| |
Refs #19716.
|
|
|
|
| |
Thanks CHI Cheng for the report.
|
|
|
|
|
|
|
| |
MySQL driver
Thanks Corey Farwell for the report and Tim Graham for the review.
Thanks also to Inada Naoki for creating and maintaining mysqlclient.
|
| |
|