[Erp5-report] r25988 - /erp5/trunk/products/ZSQLCatalog/ColumnMap.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 11 17:31:00 CET 2009
Author: vincent
Date: Wed Mar 11 17:31:00 2009
New Revision: 25988
URL: http://svn.erp5.org?rev=25988&view=rev
Log:
Do not alias translation table to a hardcoded value: if one uses more than one related key involving translation table columns, they are all mapped to the same alias - so there is only one join happening.
Modified:
erp5/trunk/products/ZSQLCatalog/ColumnMap.py
Modified: erp5/trunk/products/ZSQLCatalog/ColumnMap.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/ColumnMap.py?rev=25988&r1=25987&r2=25988&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/ColumnMap.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/ColumnMap.py [utf8] Wed Mar 11 17:31:00 2009
@@ -141,7 +141,7 @@
self.related_group_dict[group] = related_column
# XXX: hardcoded translation table column names: they are not present in sql_catalog.getColumnMap(), and this table cannot be joined by uid, forbidding implicit join.
if column in ('translated_message', 'language', 'message_context', 'original_message'):
- self.registerTable('translation', alias='translation', group=group)
+ self.registerTable('translation', group=group)
self.resolveColumn(column, 'translation', group=group)
# Likewise, for measure table. Moreover, there is a related key named the same way as a column of that table (designed to do the join).
elif column in ('metric_type_uid', ):
More information about the Erp5-report
mailing list