Make sure the main catalog is properly registered

...while attempting to build the ColumnMap.

This makes sure that buildSQLQuery() works even if no actual query is present.
parent 1e71a4d8
...@@ -426,6 +426,7 @@ class ColumnMap(object): ...@@ -426,6 +426,7 @@ class ColumnMap(object):
# now that we have all aliases, calculate missing joins comming from # now that we have all aliases, calculate missing joins comming from
# non-RelatedKey relationships (like full_text). # non-RelatedKey relationships (like full_text).
self.registerCatalog()
self._calculateMissingJoins() self._calculateMissingJoins()
# and all left joins that did not come from explicit queries # and all left joins that did not come from explicit queries
# (i.e. joins comming from 'sort_on', 'select_dict', etc.) # (i.e. joins comming from 'sort_on', 'select_dict', etc.)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment