summaryrefslogtreecommitdiff
path: root/test/sql/test_operators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-02-02 16:17:58 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-02-02 16:17:58 -0500
commitcb19f227f31701322f398b5bdd77427dfc81da0d (patch)
tree644fb3803e3948888b61ff5b4af804615c66ee8a /test/sql/test_operators.py
parentda3d817f3624d5f631956e33d92799572f47e52f (diff)
downloadsqlalchemy-cb19f227f31701322f398b5bdd77427dfc81da0d.tar.gz
The :meth:`.ColumnOperators.in_` operator will now coerce
values of ``None`` to :func:`.null`. [ticket:2496]
Diffstat (limited to 'test/sql/test_operators.py')
-rw-r--r--test/sql/test_operators.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py
index 45f4978ed..7215ae565 100644
--- a/test/sql/test_operators.py
+++ b/test/sql/test_operators.py
@@ -736,6 +736,12 @@ class InTest(fixtures.TestBase, testing.AssertsCompiledSQL):
{'param_1': 10}
)
+ def test_in_28(self):
+ self.assert_compile(
+ self.table1.c.myid.in_([None]),
+ "mytable.myid IN (NULL)"
+ )
+
class MathOperatorTest(fixtures.TestBase, testing.AssertsCompiledSQL):
__dialect__ = 'default'