X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e8b866aa88d51723810bc246b3f50ac5f36dee3a..c41f2fed2133668dc3179813261d39d3ff69cbdd:/nominatim/db/connection.py?ds=sidebyside diff --git a/nominatim/db/connection.py b/nominatim/db/connection.py index 51110f54..82801ae7 100644 --- a/nominatim/db/connection.py +++ b/nominatim/db/connection.py @@ -179,7 +179,7 @@ class Connection(psycopg2.extensions.connection): """ Return True if the hstore extension is loaded in the database. """ with self.cursor() as cur: - cur.execute('SELECT extname FROM pg_extension WHERE extname = %s', (extension_name)) + cur.execute('SELECT extname FROM pg_extension WHERE extname = %s', (extension_name, )) return cur.rowcount > 0