[ftiquery] make queries independent of hashing function

Fixes test_fulltext_search2 under python -R. Closes #288604

authorJulien Cristau <julien.cristau@logilab.fr>
changeset5f304b43d47c
branchdefault
phasepublic
hiddenno
parent revision#6297e433435b [postgres] fix list_indices (closes #292644)
child revision#70f7a67ecbde [pkg] Prepare 1.13.3
files modified by this revision
ftiquery.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1424082255 -3600
# Mon Feb 16 11:24:15 2015 +0100
# Node ID 5f304b43d47ca83d600267441deab67bcec036e9
# Parent 6297e433435bccabf847a0f6f6d17eb2613b37e3
[ftiquery] make queries independent of hashing function

Fixes test_fulltext_search2 under python -R. Closes #288604

diff --git a/ftiquery.py b/ftiquery.py
@@ -63,11 +63,11 @@
1 
2          # keywords query
3          if not self.words:
4              results = {}
5          else:
6 -            results = KeywordsQuery(list(self.words.keys())).dict_query(cursor)
7 +            results = KeywordsQuery(sorted(self.words.keys())).dict_query(cursor)
8              if not results:
9                  raise StopIteration()
10 
11          # phrase queries
12          for q in self.phrases: