summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-29 09:41:57 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-29 09:43:03 +0200
commitf62816bfc6a358ea0f04c733a4f56096d9c2405a (patch)
tree551a6ea09a416fc3d78475deec1d8be6536ca0df /django
parent0da90533f2bc66e9cf54e9b9795ecbbdc2618bd6 (diff)
[4.0.x] Updated Oracle docs links to Oracle 21c.
Backport of 83c803f161044fbfbfcd9a0c94ca93dc131be662 from main
Diffstat (limited to 'django')
-rw-r--r--django/db/backends/oracle/operations.py6
-rw-r--r--django/db/backends/oracle/schema.py2
2 files changed, 4 insertions, 4 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)