diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-29 09:41:57 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-29 09:43:03 +0200 |
| commit | f62816bfc6a358ea0f04c733a4f56096d9c2405a (patch) | |
| tree | 551a6ea09a416fc3d78475deec1d8be6536ca0df | |
| parent | 0da90533f2bc66e9cf54e9b9795ecbbdc2618bd6 (diff) | |
[4.0.x] Updated Oracle docs links to Oracle 21c.
Backport of 83c803f161044fbfbfcd9a0c94ca93dc131be662 from main
| -rw-r--r-- | django/db/backends/oracle/operations.py | 6 | ||||
| -rw-r--r-- | django/db/backends/oracle/schema.py | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/functions.txt | 6 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/geoquerysets.txt | 2 | ||||
| -rw-r--r-- | docs/ref/unicode.txt | 6 | ||||
| -rw-r--r-- | docs/releases/2.0.txt | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/django/db/backends/oracle/operations.py b/django/db/backends/oracle/operations.py index 2d3df92411..d7f6c70c18 100644 --- a/django/db/backends/oracle/operations.py +++ b/django/db/backends/oracle/operations.py @@ -89,12 +89,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": @@ -152,7 +152,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 0eb0f6f668..e4178ec10b 100644 --- a/django/db/backends/oracle/schema.py +++ b/django/db/backends/oracle/schema.py @@ -114,7 +114,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 82aaf1196d..a7dae25f97 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 <https://postgis.net/docs/ST_MinimumBoundingCircle.html>`__, -`Oracle <https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/ +`Oracle <https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/ SDO_GEOM-reference.html#GUID-82A61626-BB64-4793-B53D-A0DBEC91831A>`_ Accepts a single geographic field or expression and returns the smallest circle @@ -307,8 +307,8 @@ queryset is calculated:: *Availability*: MariaDB, `MySQL <https://dev.mysql.com/doc/refman/en/gis-general-property-functions.html#function_st-envelope>`__, -`Oracle <https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/ -SDO_GEOM-reference.html#GUID-646638D0-2C5F-490A-AF63-DE9B7A4C97C1__CHDJCEIH>`__, +`Oracle <https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/ +spatial-operators-reference.html#GUID-ACED800F-3435-44AA-9606-D40934A23ED0>`__, `PostGIS <https://postgis.net/docs/ST_Envelope.html>`__, 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 c3730a794b..6501620ecf 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 <https://docs.oracle.com/en/database/oracle/oracle-database/18/drdaa/ + columns <https://docs.oracle.com/en/database/oracle/oracle-database/21/drdaa/ intro-to-tools-and-products-supporting-migraiton.html#GUID-14E4817B-F3BC-4D99 -B471-A0ACDC303CC9>`__. |
