summaryrefslogtreecommitdiff
path: root/test/sql/test_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_functions.py')
-rw-r--r--test/sql/test_functions.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py
index 1722a1e69..91076f9c3 100644
--- a/test/sql/test_functions.py
+++ b/test/sql/test_functions.py
@@ -1064,14 +1064,10 @@ class ExecuteTest(fixtures.TestBase):
@testing.fails_on_everything_except("postgresql")
def test_as_from(self, connection):
# TODO: shouldn't this work on oracle too ?
- x = connection.execute(func.current_date(bind=testing.db)).scalar()
- y = connection.execute(
- func.current_date(bind=testing.db).select()
- ).scalar()
- z = connection.scalar(func.current_date(bind=testing.db))
- w = connection.scalar(
- select("*").select_from(func.current_date(bind=testing.db))
- )
+ x = connection.execute(func.current_date()).scalar()
+ y = connection.execute(func.current_date().select()).scalar()
+ z = connection.scalar(func.current_date())
+ w = connection.scalar(select("*").select_from(func.current_date()))
assert x == y == z == w