diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-13 19:18:58 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-13 19:18:58 -0400 |
commit | 2057b86b2ac2cfcb354ac213fc997359089a3d4c (patch) | |
tree | 896d844813b284654cc6eea38d0c245e74bb92a6 | |
parent | dd40c638857d06e0c50d50523d4c9412f0953334 (diff) | |
download | sqlalchemy-2057b86b2ac2cfcb354ac213fc997359089a3d4c.tar.gz |
comment
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_results.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_results.py b/lib/sqlalchemy/testing/suite/test_results.py index ceb7e7828..87d85f6e6 100644 --- a/lib/sqlalchemy/testing/suite/test_results.py +++ b/lib/sqlalchemy/testing/suite/test_results.py @@ -93,6 +93,13 @@ class RowFetchTest(fixtures.TablesTest): def test_row_w_scalar_select(self): + """test that a scalar select as a column is returned as such + and that type conversion works OK. + + (this is half a SQLAlchemy Core test and half to catch database + backends that may have unusual behavior with scalar selects.) + + """ datetable = self.tables.has_dates s = select([datetable.alias('x').c.today]).as_scalar() s2 = select([datetable.c.id, s.label('somelabel')]) |