mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 22:04:07 +00:00
older version of Postgres cannot convert jsonb to int
This commit is contained in:
@@ -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,))
|
||||||
|
|||||||
Reference in New Issue
Block a user