]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
comment
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 13 Mar 2014 23:18:58 +0000 (19:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 13 Mar 2014 23:18:58 +0000 (19:18 -0400)
lib/sqlalchemy/testing/suite/test_results.py

index ceb7e78289f3c631c085400796782d5acd3fd274..87d85f6e6f212427b1ee39a294bcf605b63b9344 100644 (file)
@@ -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')])