=======
0.4.4
------
+- sql
+ - can again create aliases of selects against textual
+ FROM clauses, [ticket:975]
+
- orm
- any(), has(), contains(), attribute level == and != now
work properly with self-referential relations - the clause
def __init__(self, text):
self.name = text
+ self.oid_column = None
class _BindParamClause(ClauseElement, _CompareMixin):
"""Represent a bind parameter.
select(["column1 AS foobar", "column2 AS hoho", table1.c.myid], from_obj=[table1]).select(),
"SELECT column1 AS foobar, column2 AS hoho, myid FROM (SELECT column1 AS foobar, column2 AS hoho, mytable.myid AS myid FROM mytable)"
)
+
+ self.assert_compile(
+ select(['col1','col2'], from_obj='tablename').alias('myalias'),
+ "SELECT col1, col2 FROM tablename"
+ )
def test_binds_in_text(self):
self.assert_compile(