mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Updated DatabaseFeatures.bare_select_suffix on Oracle 23c.
https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-4EB70EB9-4EE3-4FE2-99C4-86F7AAC60F12
This commit is contained in:
committed by
Mariusz Felisiak
parent
a816efe238
commit
c72001644f
@@ -43,8 +43,9 @@ class Tests(TestCase):
|
||||
An 'almost right' datetime works with configured NLS parameters
|
||||
(#18465).
|
||||
"""
|
||||
suffix = connection.features.bare_select_suffix
|
||||
with connection.cursor() as cursor:
|
||||
query = "select 1 from dual where '1936-12-29 00:00' < sysdate"
|
||||
query = f"SELECT 1{suffix} WHERE '1936-12-29 00:00' < SYSDATE"
|
||||
# The query succeeds without errors - pre #18465 this
|
||||
# wasn't the case.
|
||||
cursor.execute(query)
|
||||
|
||||
Reference in New Issue
Block a user