summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-11-23 20:13:20 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-11-23 20:13:20 -0500
commit584cabbf7e79948e38b29df5af63c3c712566f31 (patch)
treec4e8451d7f4b794826d20ecf18b8252099fadf25 /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parentb4e40b35627f1c26b84234d16a36ce2850a798b9 (diff)
downloadsqlalchemy-584cabbf7e79948e38b29df5af63c3c712566f31.tar.gz
Support Column objects in the SET clause for upsert
Established support for :class:`_schema.Column` objects as well as ORM instrumented attributes as keys in the ``set_`` dictionary passed to the :meth:`_postgresql.Insert.on_conflict_do_update` and :meth:`_sqlite.Insert.on_conflict_do_update` methods, which match to the :class:`_schema.Column` objects in the ``.c`` collection of the target :class:`_schema.Table`. Previously, only string column names were expected; a column expression would be assumed to be an out-of-table expression that would render fully along with a warning. Fixes: #5722 Change-Id: Ice73b501d721c28d978a0277a83cedc6aff756a9
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
0 files changed, 0 insertions, 0 deletions