mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Replaced vendor checks by three feature flags.
This commit is contained in:
@@ -130,7 +130,6 @@ class SQLiteTests(TestCase):
|
||||
self.assertRaises(NotImplementedError,
|
||||
models.Item.objects.all().aggregate, aggregate('last_modified'))
|
||||
|
||||
|
||||
def test_convert_values_to_handle_null_value(self):
|
||||
from django.db.backends.sqlite3.base import DatabaseOperations
|
||||
convert_values = DatabaseOperations(connection).convert_values
|
||||
@@ -464,9 +463,7 @@ class EscapingChecks(TestCase):
|
||||
EscapingChecksDebug test case, to also test CursorDebugWrapper.
|
||||
"""
|
||||
|
||||
# For Oracle, when you want to select a value, you need to specify the
|
||||
# special pseudo-table 'dual'; a select with no from clause is invalid.
|
||||
bare_select_suffix = " FROM DUAL" if connection.vendor == 'oracle' else ""
|
||||
bare_select_suffix = connection.features.bare_select_suffix
|
||||
|
||||
def test_paramless_no_escaping(self):
|
||||
cursor = connection.cursor()
|
||||
|
||||
Reference in New Issue
Block a user