self.left = left
self.right = right
self.id = self.left.id + "_" + self.right.id
-
if allcols:
self.columns = [c for c in self.left.columns] + [c for c in self.right.columns]
else:
- self.columns = [c for c in self.right.columns]
+ self.columns = [c for c in self.right.columns]
# TODO: if no onclause, do NATURAL JOIN
self.onclause = onclause
),
"SELECT t.myid, t.name, t.description, foo.f FROM mytable t, (select f from bar where lala=heyhey) foo WHERE foo.f = t.id")
- def testjoin(self):
+ def testjoin(self):
self.runtest(
join(self.table2, self.table, self.table.c.id == self.table2.c.id).select(),
"SELECT myothertable.otherid, myothertable.othername, mytable.myid, mytable.name, mytable.description \