Mariusz Felisiak
6b47431aaf
Refs #27860 -- Simplified deleting indexes on PostgreSQL using "IF EXISTS".
2017-03-03 10:50:34 -05:00
Tim Graham
29ea9714ee
Removed PostgreSQL version detection for psycopg2 < 2.0.12.
2017-03-01 13:17:34 -05:00
Matthew Schinckel
f48bc7c3db
Fixed #27862 -- Fixed incorrectly quoted table aliases in Subquery SQL.
...
Add aliases from resolved querysets to the parent query's external
aliases to prevent those aliases from being quoted.
Thanks to Vasily Stepanov for the report and Tim Graham for the review.
2017-03-01 07:56:37 -05:00
Anton Samarchyan
60e52a047e
Refs #27656 -- Updated django.db docstring verbs according to PEP 257.
2017-02-28 09:17:27 -05:00
Tim Graham
d6e26e5b7c
Removed obsolete references to form_for_instance().
2017-02-28 07:37:25 -05:00
Tim Graham
6b00af5014
Refs #27802 -- Corrected BaseDatabaseOperations.datetime_extract/trunc_sql() docstrings.
2017-02-27 10:07:24 -05:00
Tim Graham
82026d61a3
Refs #27843 -- Fixed 'invalid escape sequence' warning in truncate_name().
2017-02-27 09:28:02 -05:00
Ian Foote
508b5debfb
Refs #11964 -- Made Q objects deconstructible.
2017-02-23 20:47:48 -05:00
Ian Foote
19b2dfd1bf
Refs #11964 , #26167 -- Made Expressions deconstructible.
2017-02-23 20:44:06 -05:00
Vytis Banaitis
3dcc351691
Refs #23919 -- Used yield from.
2017-02-23 20:06:01 -05:00
Tim Graham
0a0c24581e
Refs #26285 -- Removed postgresql's unused DatabaseOperations.fulltext_search_sql().
...
Should have been removed in 5139832398
.
2017-02-21 13:10:24 -05:00
Vytis Banaitis
4045fd56cb
Fixed #27856 -- Improved accuracy of date subtraction on PostgreSQL.
...
Accuracy was incorrect when dates differ by a month or more.
2017-02-21 12:06:16 -05:00
Alexey Rogachev
c743af82cf
Fixed typo in DurationField's docstring.
2017-02-20 08:44:05 -05:00
Mariusz Felisiak
b935190572
Fixed #27843 -- Fixed truncate_name() when the name contains a username.
2017-02-17 09:24:55 -05:00
Vytis Banaitis
d5088f838d
Fixed #27828 -- Fixed a crash when subtracting Integer/DurationField from DateField on Oracle/PostgreSQL.
2017-02-16 11:46:32 -05:00
Tim Graham
b008f7cc56
Fixed #27135 -- Made index introspection return Index.suffix.
2017-02-15 20:15:02 -05:00
Tim Graham
0595bca221
Fixed #27742 -- Reverted "Fixed #24607 -- Serialized natural keys in multi-table inheritance models."
...
This reverts commit 74a575eb72
as it causes
unexpected migrations and doesn't seem to be the best solution.
2017-02-11 06:34:59 -05:00
ClairePhila
d26413113c
Refs #27148 -- Fixed UUIDField.to_python(None) crash.
...
Regression in 2f9861d823
.
2017-02-10 13:54:52 -05:00
ClairePhila
edad02af06
Allow UUIDField to be None when deserializing
2017-02-10 17:26:02 +01:00
Mikhail Nacharov
c4e2fc5d98
Fixed #22669 -- Fixed QuerySet.bulk_create() with empty model fields on Oracle.
2017-02-09 18:47:08 -05:00
Mariusz Felisiak
965f678a39
Fixed #25898 -- Made test database/user creation on Oracle reraise unexpected errors.
...
Thanks Shai Berger and Tim Graham for review.
2017-02-09 17:55:07 -05:00
François Freitag
e124d2da94
Fixed #26551 -- Fixed negated Q() queries that span relations.
...
Prevented queries from reusing trimmed joins.
2017-02-09 11:20:33 -05:00
Tim Graham
500532c95d
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
2017-02-09 09:03:47 -05:00
Mariusz Felisiak
1b96dbdad0
Fixed #27822 -- Replaced deprecated cx_Oracle types in DatabaseIntrospection.data_types_reverse.
2017-02-09 08:57:34 -05:00
Claude Paroz
c651331b34
Converted usage of ugettext* functions to their gettext* aliases
...
Thanks Tim Graham for the review.
2017-02-07 09:04:04 +01:00
Mariusz Felisiak
15c14f6f16
Fixed #27802 -- Unified return value of db backend datetime SQL methods.
2017-02-06 09:19:13 -05:00
Mads Jensen
86ae1d51ed
Refs #27546 -- Removed hardcoded class names in __repr__() methods.
2017-02-04 11:42:45 -05:00
Tim Graham
29f607927f
Fixed spelling of "nonexistent".
2017-02-03 08:01:45 -05:00
Tim Graham
924af638e4
Fixed #27683 -- Made MySQL default to the read committed isolation level.
...
Thanks Shai Berger for test help and Adam Johnson for review.
2017-02-01 15:34:17 -05:00
Vytis Banaitis
8838d4dd49
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
2017-02-01 11:41:56 -05:00
Lex Berezhny
ac5f886c56
Fixed #27800 -- Fixed QuerySet.annotate(Length(...)).distinct() crash.
2017-01-31 18:45:55 -05:00
Claude Paroz
52138b1fd0
Refs #23919 -- Removed usage of obsolete SafeBytes class
...
The class will be removed as part of #27753 .
Thanks Tim Graham for the review.
2017-01-30 15:04:45 +01:00
Mariusz Felisiak
89501d9298
Fixed #27789 -- Simplified query for sequence value on Oracle.
2017-01-30 08:03:42 -05:00
Tim Graham
0de0699d94
Fixed #27788 -- Dropped support for Oracle < 12.1.
2017-01-28 08:19:47 -05:00
Vytis Banaitis
d1bab24e01
Refs #23919 , #27778 -- Removed obsolete mentions of unicode.
2017-01-26 08:19:27 -05:00
Tim Graham
1c466994d9
Refs #23919 -- Removed misc Python 2/3 references.
2017-01-25 13:59:25 -05:00
chillaranand
d6eaf7c018
Refs #23919 -- Replaced super(ClassName, self) with super().
2017-01-25 12:23:46 -05:00
Tim Graham
2d96c027f5
Refs #23919 -- Removed obsolete MySQLdb references.
2017-01-25 10:16:10 -05:00
Tim Graham
3f0c4fe18f
Refs #25175 -- Deprecated db.backends.postgresql_psycopg2 module.
2017-01-25 09:23:04 -05:00
Mads Jensen
ebf34c3cdc
Removed unused variables that are overwritten.
2017-01-25 09:14:05 -05:00
Tim Graham
5b95d421f7
Refs #23919 -- Removed a MySQLdb workaround (refs #6052 ) for Python 2.
2017-01-24 08:35:06 -05:00
Tim Graham
a87d6b69a7
Tidied djang.db.utils.load_backend().
...
Removed an unneeded EnvironmentError catching and used
"raise from exc" syntax.
2017-01-24 08:33:26 -05:00
Tim Graham
435e4bf38e
Refs #23919 -- Removed __traceback__ setting needed for Python 2.
...
Partially reverted refs #25761 and refs #16245 .
2017-01-24 08:31:58 -05:00
Tim Graham
248d54569e
Removed MySQL decimal casting.
...
Added in Django 1.0: 92c35a0617
Unknown when it became obsolete.
2017-01-23 10:44:02 -05:00
Claude Paroz
8377a98ca5
Removed obsolete force_text_recursive
2017-01-22 21:13:00 +01:00
Claude Paroz
6e55e1d88a
Refs #23919 -- Replaced six.reraise by raise
2017-01-22 20:08:04 +01:00
Tim Graham
d170c63351
Refs #23919 -- Removed misc references to Python 2.
2017-01-21 20:02:00 -05:00
Mariusz Felisiak
c22212220a
Refs #23919 -- Removed re.U and re.UNICODE (default on Python 3).
2017-01-21 14:28:16 -05:00
Tim Graham
1b06d5e6f6
Refs #23919 -- Removed pysqlite support (it's Python 2 only).
2017-01-20 18:21:15 -05:00
Claude Paroz
042b7350a0
Refs #23919 -- Removed unneeded str() calls
2017-01-20 14:13:55 +01:00