From: Mike Bayer Date: Thu, 13 Mar 2014 23:18:58 +0000 (-0400) Subject: comment X-Git-Tag: rel_0_9_4~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2057b86b2ac2cfcb354ac213fc997359089a3d4c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git comment --- 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')])