mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 14:36:23 +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.
|
in the database.
|
||||||
"""
|
"""
|
||||||
with conn.cursor() as cur:
|
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'
|
FROM word WHERE type = 'W'
|
||||||
GROUP BY word
|
GROUP BY word
|
||||||
ORDER BY count DESC LIMIT %s""", (num,))
|
ORDER BY count DESC LIMIT %s""", (num,))
|
||||||
|
Loading…
Reference in New Issue
Block a user