X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/10143e0ac712913d0c33b5df4a4371e7ef849f06..28c98584c1f8bed4aa2c2fc22956f7a0f5fc8f3b:/test/python/test_indexing.py?ds=inline diff --git a/test/python/test_indexing.py b/test/python/test_indexing.py index 9873e7d7..60ad0bc4 100644 --- a/test/python/test_indexing.py +++ b/test/python/test_indexing.py @@ -19,8 +19,10 @@ class IndexerTestDB: with self.conn.cursor() as cur: cur.execute('CREATE EXTENSION hstore') cur.execute("""CREATE TABLE placex (place_id BIGINT, + name HSTORE, class TEXT, type TEXT, + linked_place_id BIGINT, rank_address SMALLINT, rank_search SMALLINT, indexed_status SMALLINT, @@ -55,11 +57,12 @@ class IndexerTestDB: cur.execute("""CREATE OR REPLACE FUNCTION placex_prepare_update(p placex, OUT name HSTORE, OUT address HSTORE, - OUT country_feature VARCHAR) + OUT country_feature VARCHAR, + OUT linked_place_id BIGINT) AS $$ BEGIN address := p.address; - name := p.address; + name := p.name; END; $$ LANGUAGE plpgsql STABLE; """)