]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add support of empty list in exanding of bindparam
authorNicolas Rolin <nicolas.rolin@cubber.com>
Fri, 25 May 2018 17:27:22 +0000 (13:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Aug 2018 21:04:10 +0000 (17:04 -0400)
commitb17fa2513e412b8f9aa1f62c0acc7fa3805e632b
treee0b565bbdb40394a1a55f10db63dd5408ee97822
parentabeea1d82db34232bbef01e98fa4d1de0f583eb6
Add support of empty list in exanding of bindparam

Added new logic to the "expanding IN" bound parameter feature whereby if
the given list is empty, a special "empty set" expression that is specific
to different backends is generated, thus allowing IN expressions to be
fully dynamic including empty IN expressions.

Fixes: #4271
Change-Id: Icc3c73bbd6005206b9d06baaeb14a097af5edd36
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/432
doc/build/changelog/migration_13.rst
doc/build/changelog/unreleased_13/4271.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/testing/suite/test_select.py
test/sql/test_query.py