]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The behavior of =/!= when comparing a scalar select
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2011 01:56:10 +0000 (21:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Sep 2011 01:56:10 +0000 (21:56 -0400)
commitc52e31b1e019fb447e0a2edb7e2c75ebe9307a95
treed0986a19a3bef4112f79db44953d55fdafc1e40e
parente4c04590a6438f73278675e96dd84b57121eeb5f
  - The behavior of =/!= when comparing a scalar select
    to a value will no longer produce IN/NOT IN as of 0.8;
    this behavior is a little too heavy handed (use in_() if
    you want to emit IN) and now emits a deprecation warning.
    To get the 0.8 behavior immediately and remove the warning,
    a compiler recipe is given at
    http://www.sqlalchemy.org/docs/07/dialects/mssql.html#scalar-select-comparisons
    to override the behavior of visit_binary().
    [ticket:2277]
CHANGES
lib/sqlalchemy/dialects/mssql/base.py
test/dialect/test_mssql.py
test/orm/inheritance/test_query.py
test/orm/test_eager_relations.py
test/orm/test_query.py