From: Matt John Date: Tue, 15 Apr 2025 19:05:36 +0000 (+0100) Subject: chore: Fix typo of psycopg2 in comment (#12526) X-Git-Tag: rel_2_0_41~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecbb398850ec65a47d63249cfa35c0dd6549af55;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git chore: Fix typo of psycopg2 in comment (#12526) 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) --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 0fd030b49b..f8c1d5c3bb 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -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, )