Commit 58ad1166 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

full text: support column='' case in RelatedQuery._asSearchTextExpression().

that now happens with multiple relation dialog with title.
parent d7cc8581
......@@ -62,12 +62,14 @@ class RelatedQuery(Query):
self.table_alias_list = table_alias_list
def _asSearchTextExpression(self, sql_catalog, column=None):
assert column is None
assert column in (None, '')
if column is None:
column = self.search_key.getColumn()
join_condition = self.join_condition
if join_condition is None:
result = None
else:
result = join_condition.asSearchTextExpression(sql_catalog, column=self.search_key.getColumn())
result = join_condition.asSearchTextExpression(sql_catalog, column=column)
return False, result
def asSQLExpression(self, sql_catalog, column_map, only_group_columns):
......
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