Issue #9 new

Broken recursive iterator when querying more than one table.

stalkerg
created an issue

In patch i use only first table if it is multitable query.

Comments (1)

  1. stalkerg reporter

    Simple example:

    def get_menu():
    	node, article = get_node(g.root_node)
    	query = Session.query(core.SiteNode, core.Article).\
    		filter(node.mp.filter_descendants()).\
    		filter(core.SiteNode.in_url==True).\
    		outerjoin((core.Article, core.SiteNode.content_article_id==core.Article.id)).\
    		order_by(core.SiteNode.mp)
    	return sqlamp.tree_recursive_iterator(query, core.SiteNode.mp)
    

    only core.SiteNode have sqlamp extension.

  2. Log in to comment