]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/db/connection.py
Merge pull request #3363 from mtmail/docs-link-correction
[nominatim.git] / nominatim / db / connection.py
index 51110f54f459987da7227cc586084222ae61bd3c..d686083697f03d03bec86ed061e509884a9905b2 100644 (file)
@@ -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.
     """