diff --git a/product/ZSQLCatalog/SearchKey/DefaultKey.py b/product/ZSQLCatalog/SearchKey/DefaultKey.py index a54d5f7c0a694b05661b40d9ccb6111d6babcc4f..b2cc3b73998496be83dfe7133cc458ffc50a1ec8 100644 --- a/product/ZSQLCatalog/SearchKey/DefaultKey.py +++ b/product/ZSQLCatalog/SearchKey/DefaultKey.py @@ -59,7 +59,9 @@ class DefaultKey(SearchKey): if operator_text == 'like': assert isinstance(value, basestring) assert '%' in value - result = '%s:%s' % (column, value) + result = value + if len(column): + result = '%s:%s' % (column, result) else: result = SearchKey.buildSearchTextExpression(self, operator, value, column=column) return result