Mercurial > p > roundup > code
diff test/test_postgresql.py @ 3685:4d9adb8bc3b1
Null-value sorting fixes:
- Fixed sorting of NULL values for the PostgreSQL backend. Generic
implementation of additional sort-key for NULL values, can be reused
by other (future) rdbms backends.
- Added a test for NULL value sorting and removed an override for the
Interval test for the PostgreSQL backend which had a special case for
NULL values
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 23 Aug 2006 12:57:10 +0000 |
| parents | adec352e2ce0 |
| children | 2784c239e6c8 |
line wrap: on
line diff
--- a/test/test_postgresql.py Tue Aug 22 19:33:02 2006 +0000 +++ b/test/test_postgresql.py Wed Aug 23 12:57:10 2006 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_postgresql.py,v 1.12 2004-11-03 01:34:21 richard Exp $ +# $Id: test_postgresql.py,v 1.13 2006-08-23 12:57:10 schlatterbeck Exp $ import unittest @@ -48,15 +48,6 @@ DBTest.tearDown(self) postgresqlOpener.tearDown(self) - def testFilteringIntervalSort(self): - # PostgreSQL sorts NULLs differently to other databases (others - # treat it as lower than real values, PG treats it as higher) - ae, filt = self.filteringSetup() - # ascending should sort None, 1:10, 1d - ae(filt(None, {}, ('+','foo'), (None,None)), ['4', '1', '2', '3']) - # descending should sort 1d, 1:10, None - ae(filt(None, {}, ('-','foo'), (None,None)), ['3', '2', '1', '4']) - class postgresqlROTest(postgresqlOpener, ROTest): def setUp(self): postgresqlOpener.setUp(self)
