]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/tools/test_postcodes.py
indexing: precompute row counts
[nominatim.git] / test / python / tools / test_postcodes.py
index febb2271da289a76266fab6b5443f95df871a6a8..f035bb19affa5c1195cb8999f61897cdd68c00de 100644 (file)
@@ -47,7 +47,7 @@ class MockPostcodeTable:
                                                           country_code, postcode,
                                                           geometry)
                            VALUES (nextval('seq_place'), 1, %s, %s,
                                                           country_code, postcode,
                                                           geometry)
                            VALUES (nextval('seq_place'), 1, %s, %s,
-                                   'SRID=4326;POINT(%s %s)')""",
+                                   ST_SetSRID(ST_MakePoint(%s, %s), 4326))""",
                         (country, postcode, x, y))
         self.conn.commit()
 
                         (country, postcode, x, y))
         self.conn.commit()