]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
chore: Fix typo of psycopg2 in comment (#12526)
authorMatt John <matthew@dockstudios.co.uk>
Tue, 15 Apr 2025 19:05:36 +0000 (20:05 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 15 Apr 2025 19:06:47 +0000 (21:06 +0200)
This is the first example in the documentation of a particular connector, which mgith result in copy+pastes, resulting in an error

(cherry picked from commit f2a9ecde29bb9d5daadd0626054ff8b54865c781)

lib/sqlalchemy/dialects/postgresql/base.py

index 0fd030b49bb35ae1ec3fe69d86e224b7a0228652..f8c1d5c3bb1eab1d803adc46c208f8d04d2d7994 100644 (file)
@@ -266,7 +266,7 @@ will remain consistent with the state of the transaction::
     from sqlalchemy import event
 
     postgresql_engine = create_engine(
-        "postgresql+pyscopg2://scott:tiger@hostname/dbname",
+        "postgresql+psycopg2://scott:tiger@hostname/dbname",
         # disable default reset-on-return scheme
         pool_reset_on_return=None,
     )