reword comment

Change-Id: I13aaf37421c7652e8e293759e9f563fc76cb1344
This commit is contained in:
Lionel Elie Mamane 2013-04-23 06:44:57 +02:00
parent 5143e162f8
commit 6536d0eb4f

View File

@ -471,10 +471,12 @@ void OSQLParseNode::impl_parseNodeToString_throw(OUStringBuffer& rString, const
if (rParam.xField.is() && SQL_ISRULE(pSubTree,subquery)) if (rParam.xField.is() && SQL_ISRULE(pSubTree,subquery))
aNewParam.xField = NULL; aNewParam.xField = NULL;
// Special case: if there is a field given we are building // When we are building a criterion inside a query view,
// a criterion inside a query view (and rString is supposed // simplify criterion display by removing:
// to be initially empty). In order to simplify criterion text // "currentFieldName"
// inside view, omit fieldname if it appears as 1st token. // "currentFieldName" =
// but only at the very beginning of the criterion
// (not embedded deep in the expression).
if (rString.isEmpty() && rParam.xField.is() && SQL_ISRULE(pSubTree,column_ref)) if (rString.isEmpty() && rParam.xField.is() && SQL_ISRULE(pSubTree,column_ref))
{ {
sal_Bool bFilter = sal_False; sal_Bool bFilter = sal_False;