mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
older version of Postgres cannot convert jsonb to int
This commit is contained in:
parent
77ed4f98bb
commit
8cba65809c
@ -188,7 +188,7 @@ class ICUTokenizer(AbstractTokenizer):
|
||||
in the database.
|
||||
"""
|
||||
with conn.cursor() as cur:
|
||||
cur.execute("""SELECT word, sum((info->'count')::int) as count
|
||||
cur.execute("""SELECT word, sum((info->>'count')::int) as count
|
||||
FROM word WHERE type = 'W'
|
||||
GROUP BY word
|
||||
ORDER BY count DESC LIMIT %s""", (num,))
|
||||
|
Loading…
Reference in New Issue
Block a user