summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-06-05 20:40:41 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-06-05 20:40:41 +0000
commit6e538cf64adfef7f604e3b0d976405a27b8e3d27 (patch)
treee147e056f50e353887429fa67fda79928e06c437 /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parent1508aed47261fe17180aa12fb312aebb0dd3c615 (diff)
parent466ed5b53a3af83f337c93be95715e4b3ab1255e (diff)
downloadsqlalchemy-6e538cf64adfef7f604e3b0d976405a27b8e3d27.tar.gz
Merge "Generalize RETURNING and suppor for MariaDB / SQLite" into main
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index f5d84a5a3..3f4ee2a20 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -613,7 +613,7 @@ class PGDialect_psycopg2(_PGDialect_common_psycopg):
# PGDialect.initialize() checks server version for <= 8.2 and sets
# this flag to False if so
- if not self.full_returning:
+ if not self.insert_returning:
self.insert_executemany_returning = False
self.executemany_mode = EXECUTEMANY_PLAIN