diff --git a/django/db/backends/oracle/operations.py b/django/db/backends/oracle/operations.py index ddad567a24..672a02d664 100644 --- a/django/db/backends/oracle/operations.py +++ b/django/db/backends/oracle/operations.py @@ -91,12 +91,12 @@ END; elif lookup_type == "iso_year": return "TO_CHAR(%s, 'IYYY')" % field_name else: - # https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/EXTRACT-datetime.html + # https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/EXTRACT-datetime.html return "EXTRACT(%s FROM %s)" % (lookup_type.upper(), field_name) def date_trunc_sql(self, lookup_type, field_name, tzname=None): field_name = self._convert_field_to_tz(field_name, tzname) - # https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/ROUND-and-TRUNC-Date-Functions.html + # https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/ROUND-and-TRUNC-Date-Functions.html if lookup_type in ("year", "month"): return "TRUNC(%s, '%s')" % (field_name, lookup_type.upper()) elif lookup_type == "quarter": @@ -154,7 +154,7 @@ END; def datetime_trunc_sql(self, lookup_type, field_name, tzname): field_name = self._convert_field_to_tz(field_name, tzname) - # https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/ROUND-and-TRUNC-Date-Functions.html + # https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/ROUND-and-TRUNC-Date-Functions.html if lookup_type in ("year", "month"): sql = "TRUNC(%s, '%s')" % (field_name, lookup_type.upper()) elif lookup_type == "quarter": diff --git a/django/db/backends/oracle/schema.py b/django/db/backends/oracle/schema.py index 7d4edcbd32..d6b04fe9a1 100644 --- a/django/db/backends/oracle/schema.py +++ b/django/db/backends/oracle/schema.py @@ -117,7 +117,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): # Add it self.add_field(model, new_temp_field) # Explicit data type conversion - # https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf + # https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf # /Data-Type-Comparison-Rules.html#GUID-D0C5A47E-6F93-4C2D-9E49-4F2B86B359DD new_value = self.quote_name(old_field.column) old_type = old_field.db_type(self.connection) diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index ad1c02a588..44cde315e2 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -221,7 +221,7 @@ south = ``π``; west = ``3π/2``. .. class:: BoundingCircle(expression, num_seg=48, **extra) *Availability*: `PostGIS `__, -`Oracle `_ Accepts a single geographic field or expression and returns the smallest circle @@ -307,8 +307,8 @@ queryset is calculated:: *Availability*: MariaDB, `MySQL `__, -`Oracle `__, +`Oracle `__, `PostGIS `__, SpatiaLite Accepts a single geographic field or expression and returns the geometry diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index 7aa5c94681..dac663e3b8 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -838,7 +838,7 @@ Keyword Argument Description details. ===================== ===================================================== -__ https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/ +__ https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/ spatial-concepts.html#GUID-CE10AB14-D5EA-43BA-A647-DAC9EEF41EE6 Example:: diff --git a/docs/ref/unicode.txt b/docs/ref/unicode.txt index cf0f9d3e0e..57e08f6482 100644 --- a/docs/ref/unicode.txt +++ b/docs/ref/unicode.txt @@ -29,9 +29,9 @@ able to store certain characters in the database, and information will be lost. .. _MySQL manual: https://dev.mysql.com/doc/refman/en/charset-database.html .. _PostgreSQL manual: https://www.postgresql.org/docs/current/multibyte.html#id-1.6.11.5.6 -.. _Oracle manual: https://docs.oracle.com/en/database/oracle/oracle-database/18/nlspg/index.html -.. _section 2: https://docs.oracle.com/en/database/oracle/oracle-database/18/nlspg/choosing-character-set.html -.. _section 11: https://docs.oracle.com/en/database/oracle/oracle-database/18/nlspg/character-set-migration.html +.. _Oracle manual: https://docs.oracle.com/en/database/oracle/oracle-database/21/nlspg/index.html +.. _section 2: https://docs.oracle.com/en/database/oracle/oracle-database/21/nlspg/choosing-character-set.html +.. _section 11: https://docs.oracle.com/en/database/oracle/oracle-database/21/nlspg/character-set-migration.html All of Django's database backends automatically convert strings into the appropriate encoding for talking to the database. They also automatically diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index 332f5ae344..8d1fae4ef8 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -237,7 +237,7 @@ Models finds the starting index of a string inside another string. * On Oracle, ``AutoField`` and ``BigAutoField`` are now created as `identity - columns `__.