MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_same_named_col_in_orderby

Method test_same_named_col_in_orderby

test/orm/test_bundle.py:137–149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 DictBundle("pk", Data.id, Other.id)
136
137 def test_same_named_col_in_orderby(self):
138 Data, Other = self.classes("Data", "Other")
139 bundle = Bundle("pk", Data.id, Other.id)
140 sess = fixture_session()
141
142 self.assert_compile(
143 sess.query(Data, Other).order_by(bundle),
144 "SELECT data.id AS data_id, data.d1 AS data_d1, "
145 "data.d2 AS data_d2, data.d3 AS data_d3, "
146 "other.id AS other_id, other.data_id AS other_data_id, "
147 "other.o1 AS other_o1 "
148 "FROM data, other ORDER BY data.id, other.id",
149 )
150
151 def test_same_named_col_in_fetch(self):
152 Data, Other = self.classes("Data", "Other")

Callers

nothing calls this directly

Calls 5

BundleClass · 0.90
fixture_sessionFunction · 0.90
assert_compileMethod · 0.80
order_byMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected