X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e8b866aa88d51723810bc246b3f50ac5f36dee3a..e929693caef46af05ac60bda0debb49a0b522225:/nominatim/db/connection.py?ds=sidebyside diff --git a/nominatim/db/connection.py b/nominatim/db/connection.py index 51110f54..d6860836 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 @@ -239,7 +239,7 @@ _PG_CONNECTION_STRINGS = { def get_pg_env(dsn: str, base_env: Optional[SysEnv] = None) -> Dict[str, str]: """ Return a copy of `base_env` with the environment variables for - PostgresSQL set up from the given database connection string. + PostgreSQL set up from the given database connection string. If `base_env` is None, then the OS environment is used as a base environment. """