1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00
Nick Pope
2023-12-12 16:07:31 +00:00
committed by Mariusz Felisiak
parent a816efe238
commit c72001644f
4 changed files with 16 additions and 7 deletions

View File

@@ -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)