From 2057b86b2ac2cfcb354ac213fc997359089a3d4c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 13 Mar 2014 19:18:58 -0400 Subject: [PATCH] comment --- lib/sqlalchemy/testing/suite/test_results.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/sqlalchemy/testing/suite/test_results.py b/lib/sqlalchemy/testing/suite/test_results.py index ceb7e78289..87d85f6e6f 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')]) -- 2.47.3