sql/londiste: fix locale problem in londiste_merge test
authorMarko Kreen <markokr@gmail.com>
Fri, 25 May 2012 13:32:26 +0000 (16:32 +0300)
committerMarko Kreen <markokr@gmail.com>
Fri, 25 May 2012 13:32:26 +0000 (16:32 +0300)
We want fixed sort order here to get quick overview of combinations.
Use 'name' type to get non-locale sorting.

Reported-By: Cédric Villemain
sql/londiste/sql/londiste_merge.sql

index 9df6b888975cac2ff0ce71a7e0bfc94820c3592b..fd037f13b2097aed012e9d411830e8c1f1c51d86 100644 (file)
@@ -124,7 +124,7 @@ create function testmatrix(
 returns setof record as $$
 begin
     for p1s, p2s, p3s in
-        select p1.state, p2.state, p3.state
+        select p1.state::name, p2.state::name, p3.state::name
         from states p1, states p2, states p3
         where position('!' in p1.state) + position('!' in p2.state) + position('!' in p3.state) < 2
         order by 1,2,3