self.selects.append(s)
_SelectBaseMixin.__init__(self, **kwargs)
-
+
+ self.oid_column = None
for s in self.selects:
+ # TODO: need to repair proxy_column here to
+ # not require full traversal
if s.oid_column:
self.oid_column = self._proxy_column(s.oid_column)
-
+
def self_group(self, against=None):
return _FromGrouping(self)
"SELECT myothertable.otherid FROM myothertable EXCEPT SELECT thirdtable.userid FROM thirdtable \
UNION SELECT mytable.myid FROM mytable"
)
+
+ # test unions working with non-oid selectables
+ s = select([column('foo'), column('bar')])
+ s = union(s, s)
+ s = union(s, s)
+ self.assert_compile(s, "SELECT foo, bar UNION SELECT foo, bar UNION (SELECT foo, bar UNION SELECT foo, bar)")
+
@testing.uses_deprecated('//get_params')
def test_binds(self):