]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Support pg10
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Oct 2017 15:50:05 +0000 (11:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Oct 2017 16:26:16 +0000 (12:26 -0400)
One test appears to use some awkward calling style
with the current_date function that isn't working in pg10
anymore, this looks like an extremely
old test that can be removed

Change-Id: I5f8aee0f5ed423461be5a9060c812eb0acdc7df5

test/sql/test_functions.py

index a7dfd2bebeb0f1ac06634dc942ba0932a90c72d6..d244e9671b8397af2c6ebd8089d4e910d0c62cd4 100644 (file)
@@ -630,6 +630,7 @@ class ReturnTypeTest(fixtures.TestBase):
 
 
 class ExecuteTest(fixtures.TestBase):
+    __backend__ = True
 
     @engines.close_first
     def tearDown(self):
@@ -744,14 +745,7 @@ class ExecuteTest(fixtures.TestBase):
         w = select(['*'], from_obj=[func.current_date(bind=testing.db)]).\
             scalar()
 
-        # construct a column-based FROM object out of a function,
-        # like in [ticket:172]
-        s = select([sql.column('date', type_=DateTime)],
-                   from_obj=[func.current_date(bind=testing.db)])
-        q = s.execute().first()[s.c.date]
-        r = s.alias('datequery').select().scalar()
-
-        assert x == y == z == w == q == r
+        assert x == y == z == w
 
     def test_extract_bind(self):
         """Basic common denominator execution tests for extract()"""