diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2013-08-20 11:33:44 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-08-20 11:33:44 +0300 |
| commit | 8dc76c4b9108f49afc5db07a23f34ad259a7642b (patch) | |
| tree | d2bbfb4b7019c834e1de309350d4c7d50ff3c51b /django | |
| parent | 905409855c6b69f613190fcc2d8bd8bf5e1580b5 (diff) | |
Fixed test failure caused by different NULL ordering between backends
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/__init__.py | 3 | ||||
| -rw-r--r-- | django/db/backends/postgresql_psycopg2/base.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 946c650c34..07d45c9175 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -595,6 +595,9 @@ class BaseDatabaseFeatures(object): # to remove any ordering? requires_explicit_null_ordering_when_grouping = False + # Does the backend order NULL values as largest or smallest? + nulls_order_largest = False + # Is there a 1000 item limit on query parameters? supports_1000_query_parameters = True diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py index e676065578..f0a82c22d6 100644 --- a/django/db/backends/postgresql_psycopg2/base.py +++ b/django/db/backends/postgresql_psycopg2/base.py @@ -55,6 +55,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): supports_tablespaces = True supports_transactions = True can_distinct_on_fields = True + nulls_order_largest = True class DatabaseWrapper(BaseDatabaseWrapper): |
