MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_as_from

Method test_as_from

test/sql/test_functions.py:1647–1654  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1645
1646 @testing.fails_on_everything_except("postgresql")
1647 def test_as_from(self, connection):
1648 # TODO: shouldn't this work on oracle too ?
1649 x = connection.execute(func.current_date()).scalar()
1650 y = connection.execute(func.current_date().select()).scalar()
1651 z = connection.scalar(func.current_date())
1652 w = connection.scalar(select("*").select_from(func.current_date()))
1653
1654 assert x == y == z == w
1655
1656 def test_extract_bind(self, connection):
1657 """Basic common denominator execution tests for extract()"""

Callers

nothing calls this directly

Calls 6

selectFunction · 0.90
current_dateMethod · 0.80
scalarMethod · 0.45
executeMethod · 0.45
selectMethod · 0.45
select_fromMethod · 0.45

Tested by

no test coverage detected