mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
older versions of Postgresql need explicit return type
This commit is contained in:
@@ -189,7 +189,7 @@ def test_load_data(dsn, src_dir, place_row, placex_table, osmline_table, word_ta
|
|||||||
temp_db_cursor, threads):
|
temp_db_cursor, threads):
|
||||||
for func in ('make_keywords', 'getorcreate_housenumber_id', 'make_standard_name'):
|
for func in ('make_keywords', 'getorcreate_housenumber_id', 'make_standard_name'):
|
||||||
temp_db_cursor.execute("""CREATE FUNCTION {} (src TEXT)
|
temp_db_cursor.execute("""CREATE FUNCTION {} (src TEXT)
|
||||||
RETURNS TEXT AS $$ SELECT 'a' $$ LANGUAGE SQL
|
RETURNS TEXT AS $$ SELECT 'a'::TEXT $$ LANGUAGE SQL
|
||||||
""".format(func))
|
""".format(func))
|
||||||
for oid in range(100, 130):
|
for oid in range(100, 130):
|
||||||
place_row(osm_id=oid)
|
place_row(osm_id=oid)
|
||||||
|
|||||||
Reference in New Issue
Block a user