X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/993b238a4169cd527ca5122554a8c52a178200db..ab6f35d83a350ead4eb12b59c4cbc050e48f93ee:/test/python/tools/test_database_import.py diff --git a/test/python/tools/test_database_import.py b/test/python/tools/test_database_import.py index f825cdf5..6d6d75fd 100644 --- a/test/python/tools/test_database_import.py +++ b/test/python/tools/test_database_import.py @@ -217,7 +217,7 @@ class TestSetupSQL: def test_create_table_triggers(self, temp_db_conn, temp_db_cursor): self.write_sql('table-triggers.sql', """CREATE FUNCTION test() RETURNS TEXT - AS $$ SELECT 'a' $$ LANGUAGE SQL""") + AS $$ SELECT 'a'::text $$ LANGUAGE SQL""") database_import.create_table_triggers(temp_db_conn, self.config) @@ -227,7 +227,7 @@ class TestSetupSQL: def test_create_partition_tables(self, temp_db_conn, temp_db_cursor): self.write_sql('partition-tables.src.sql', """CREATE FUNCTION test() RETURNS TEXT - AS $$ SELECT 'b' $$ LANGUAGE SQL""") + AS $$ SELECT 'b'::text $$ LANGUAGE SQL""") database_import.create_partition_tables(temp_db_conn, self.config)