mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Replaced vendor checks by three feature flags.
This commit is contained in:
parent
43a80f4812
commit
c70a61eb49
7 changed files with 17 additions and 16 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue