Commit 071e4b1a authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog: Move catalog table registration out of ColumnMap.

registerCatalog method must be avoided whenever possible.
parent 058178f1
master arnau arnau-TM-FEC-output arnau-TM-getTypeBasedMethod-for-init_script arnau-TM-isBuildable-with-multiple-BusinessLinks arnau-TM-jabber-client-desktop-notifications arnau-real-time-inventory-accounting bryton/py3 catalog_filter cherry-pick-243c2f03 cherry-pick-304d7a28 erp5-component erp5-imt erp5-messenger erp5-vifib erp5_catalog erp5_catalog_final erp5_corporate_identity erp5_hal_json_style_fix_restricted_access_with_traverse erp5_payslip_migration feat/pdm_content_translation feature/accounting-reports-stats feature/hal-actions-support feature/hal-support-update feature/jio-accounting-reports feature/jio-action-accounting feature/jio-selection-actions feature/json-allows-all-jio-actions feature/renderjs-matrixbox feature/rjs-listbox-stats feature/rjs-mass-transition feature/rjs-print-action fix/consistency_check_alarm fix/multiple_small_fixes_to_zodb_history_tab fix/support-request-app-empty for_testrunner_1 for_testrunner_2 for_testrunner_3 hotfix/accounting-test-timeout hotfix/callable_tool hotfix/field-keeps-request hotfix/jio-mass-transition hotfix/jio_view hotfix/pdm-test hotfix/rjs-accounting-tests hotfix/rjs-editability hotfix/rjs-form-less-invasive hotfix/rjs-formfields-padding hotfix/rjs-listbox-mutex hotfix/rjs-replace-query-with-uids hotfix/tests-cleanup js-ui keep_order_in_set_type_category_accessor listbox_url macros_fix monitoring monitoring-graph ojs_wip refactor/base_edit refactor/renderjs revert-38554dbe revert-6c89fe9b scalability-master scalability-roque-2 scalability-run-command streaming_fix streaming_fix-0 valentin_translation_fix wip wsgi-gevent test-ui test-rjsacc test-rjs renderjs-test erp5.util-0.4.58 erp5.util-0.4.57 erp5.util-0.4.56 erp5.util-0.4.55 erp5.util-0.4.54 erp5.util-0.4.53 erp5.util-0.4.52
No related merge requests found
......@@ -416,7 +416,6 @@ class ColumnMap(object):
# now that we have all aliases, calculate missing joins comming from
# non-RelatedKey relationships (like full_text).
self.registerCatalog()
self._calculateMissingJoins()
# and all left joins that did not come from explicit queries
# (i.e. joins comming from 'sort_on', 'select_dict', etc.)
......
......@@ -96,6 +96,9 @@ class EntireQuery(object):
)
self.column_map = column_map
if 1:
column_map.registerTable(
self.catalog_table_name,
)
for extra_column in self.extra_column_list:
table, column = extra_column.replace('`', '').split('.')
if table != self.catalog_table_name:
......
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