from FromClause objects can be unioned
- Text type is properly exported now and does not raise a warning
on DDL create
+ - fixed bug in union() so that select() statements which don't derive
+ from FromClause objects can be unioned
+
- dialects
- Fixed reflection of mysql empty string column defaults.
_SelectBaseMixin.__init__(self, **kwargs)
for s in self.selects:
- self.oid_column = self._proxy_column(s.oid_column)
+ if s.oid_column:
+ self.oid_column = self._proxy_column(s.oid_column)
def self_group(self, against=None):
FROM mytable WHERE mytable.name = :mytable_name_2"
)
+ self.assert_compile(
+ union(
+ select([literal(100).label('value')]),
+ select([literal(200).label('value')])
+ ),
+ "SELECT :param_1 AS value UNION SELECT :param_2 AS value"
+ )
+
+
def test_compound_select_grouping(self):
self.assert_compile(
union_all(