diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-07-19 17:56:18 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-07-19 17:56:18 -0400 |
commit | c7312cc508eadc9e85a3de0dc56c9906dccdf7a1 (patch) | |
tree | fc0667f929ec99797e6cd8340c5e9a726a84812d /test/sql/test_compiler.py | |
parent | 1c65ddee24f77b9751f05ba50b618234a6a039c5 (diff) | |
download | sqlalchemy-c7312cc508eadc9e85a3de0dc56c9906dccdf7a1.tar.gz |
- changelog for #3459, fixes #3459
- test for .cast() method has no good place now except for
test_cast in test_compiler.py
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r-- | test/sql/test_compiler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 04e3171a9..06cb80ba0 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2040,6 +2040,8 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): 'Incorrect number of expected results') eq_(str(cast(tbl.c.v1, Numeric).compile(dialect=dialect)), 'CAST(casttest.v1 AS %s)' % expected_results[0]) + eq_(str(tbl.c.v1.cast(Numeric).compile(dialect=dialect)), + 'CAST(casttest.v1 AS %s)' % expected_results[0]) eq_(str(cast(tbl.c.v1, Numeric(12, 9)).compile(dialect=dialect)), 'CAST(casttest.v1 AS %s)' % expected_results[1]) eq_(str(cast(tbl.c.ts, Date).compile(dialect=dialect)), |