summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-09-28 18:01:57 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2016-09-28 18:08:30 -0400
commit800a18aff2927433163afec3b7a4671eabe1c2e3 (patch)
treed96a7cda2bf6d576a526d52c70c8a63e6b1a0e56 /lib/sqlalchemy/dialects/postgresql/base.py
parentf09056323e2c7b51ecdf02f8c31e7529382ed0f8 (diff)
downloadsqlalchemy-800a18aff2927433163afec3b7a4671eabe1c2e3.tar.gz
Enable include_table for ON CONFLICT whereclauses
Fixed issue in new PG "on conflict" construct where columns including those of the "excluded" namespace would not be table-qualified in the WHERE clauses in the statement. Change-Id: Idfefc93e7e7b0d84805e23d5436d822d606f6a0a Fixes: #3807
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 09d36349f..a9f11aae0 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1431,7 +1431,6 @@ class PGCompiler(compiler.SQLCompiler):
target_text += ' WHERE %s' % \
self.process(
clause.inferred_target_whereclause,
- include_table=False,
use_schema=False
)
else:
@@ -1471,7 +1470,7 @@ class PGCompiler(compiler.SQLCompiler):
action_text += ' WHERE %s' % \
self.process(
clause.update_whereclause,
- include_table=False,
+ include_table=True,
use_schema=False
)