diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2023-02-16 19:57:50 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2023-02-16 19:57:50 +0000 |
| commit | d832676e90643ac2a8a30570e393f1de7a43900a (patch) | |
| tree | fe34011a31e0bd03c358ac306b59d4b3d75782da /test/sql/test_operators.py | |
| parent | 88c9463dc1114d493ed886a11705af714f27a221 (diff) | |
| parent | 693f7f7a84ac77eaacc9ff9c8035a249d7f1ce7e (diff) | |
| download | sqlalchemy-d832676e90643ac2a8a30570e393f1de7a43900a.tar.gz | |
Merge "Fix coercion issue for tuple bindparams" into main
Diffstat (limited to 'test/sql/test_operators.py')
| -rw-r--r-- | test/sql/test_operators.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py index e7e51aa63..8ed8c7d33 100644 --- a/test/sql/test_operators.py +++ b/test/sql/test_operators.py @@ -4303,6 +4303,14 @@ class TupleTypingTest(fixtures.TestBase): expr = t1 == (3, "hi", b"there") self._assert_types(expr.right.type.types) + def test_tuple_type_left_type_ignored(self): + a, b = column("a", sqltypes.Date), column("b", sqltypes.DateTime) + c = column("c", sqltypes.Float) + + t1 = tuple_(a, b, c) + expr = t1.in_([(3, "hi", b"there")]) + self._assert_types(expr.right.type.types) + class InSelectableTest(fixtures.TestBase, testing.AssertsCompiledSQL): __dialect__ = "default" |
