diff options
| author | Marti Raudsepp <marti@juffo.org> | 2016-10-25 18:43:32 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-25 11:43:54 -0400 |
| commit | ae91fc786cc2d93a325a940f0ead77d00cb42a17 (patch) | |
| tree | 8cbecab0639ab8d921af19f32d6f30bdf4df0ff6 /django/db | |
| parent | 3a416e4ba9f7094be55110dae8e5a6451984d226 (diff) | |
[1.10.x] Updated postgresql.org links to https and made them canonical.
Backport of 51fbe2a60d9c7ff3fe62688ad262ccda648f506d from master
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/postgresql/operations.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index 9b64615001..7640167939 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -12,7 +12,7 @@ class DatabaseOperations(BaseDatabaseOperations): if internal_type in ("GenericIPAddressField", "IPAddressField", "TimeField", "UUIDField"): # PostgreSQL will resolve a union as type 'text' if input types are # 'unknown'. - # http://www.postgresql.org/docs/9.4/static/typeconv-union-case.html + # https://www.postgresql.org/docs/current/static/typeconv-union-case.html # These fields cannot be implicitly cast back in the default # PostgreSQL configuration so we need to explicitly cast them. # We must also remove components of the type within brackets: @@ -21,7 +21,7 @@ class DatabaseOperations(BaseDatabaseOperations): return '%s' def date_extract_sql(self, lookup_type, field_name): - # http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT + # https://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT if lookup_type == 'week_day': # For consistency across backends, we return Sunday=1, Saturday=7. return "EXTRACT('dow' FROM %s) + 1" % field_name @@ -29,7 +29,7 @@ class DatabaseOperations(BaseDatabaseOperations): return "EXTRACT('%s' FROM %s)" % (lookup_type, field_name) def date_trunc_sql(self, lookup_type, field_name): - # http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC + # https://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC return "DATE_TRUNC('%s', %s)" % (lookup_type, field_name) def _convert_field_to_tz(self, field_name, tzname): @@ -52,7 +52,7 @@ class DatabaseOperations(BaseDatabaseOperations): def datetime_trunc_sql(self, lookup_type, field_name, tzname): field_name, params = self._convert_field_to_tz(field_name, tzname) - # http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC + # https://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC sql = "DATE_TRUNC('%s', %s)" % (lookup_type, field_name) return sql, params |
