clause = clause.outerjoin(prop.select_table, prop.get_join())
else:
clause = clause.join(prop.select_table, prop.get_join())
- print "SELECT_TABLE", prop.select_table
- print "JOIN", prop.get_join()
- print "CLAUSE", str(clause), "DONE CLAUSE"
mapper = prop.mapper
return (clause, mapper)
if whereclause is not None and self.is_polymorphic:
# adapt the given WHERECLAUSE to adjust instances of this query's mapped table to be that of our select_table,
# which may be the "polymorphic" selectable used by our mapper.
- print "PolYMORPHIC YES"
- print "WHERECLAUSE", str(whereclause)
- print "OUR TABLE", str(self.table)
whereclause.accept_visitor(sql_util.ClauseAdapter(self.table))
- print "AND NOW ITS", str(whereclause)
context = kwargs.pop('query_context', None)
if context is None:
def accept_option(self, opt):
"""accept a MapperOption which will process (modify) the state of this SelectionContext."""
opt.process_selection_context(self)
-
\ No newline at end of file
+
for c in s.c:
yield c
def _proxy_column(self, column):
- print "PROXYING COLUMN", type(column), column
if self.use_labels:
col = column._make_proxy(self, name=column._label)
else: