summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-04-23 06:44:57 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-04-23 06:45:59 +0200
commit6536d0eb4f56e64c9b74b358642e3ee1e39353e5 (patch)
tree65f7c4f7aa576f690b36bc403f5fad5045b36d09 /connectivity
parent5143e162f81ec64db4ed2b11a3a79183c4901c79 (diff)
reword comment
Change-Id: I13aaf37421c7652e8e293759e9f563fc76cb1344
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/parse/sqlnode.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index ea384acee320..391e6d60d322 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -471,10 +471,12 @@ void OSQLParseNode::impl_parseNodeToString_throw(OUStringBuffer& rString, const
if (rParam.xField.is() && SQL_ISRULE(pSubTree,subquery))
aNewParam.xField = NULL;
- // Special case: if there is a field given we are building
- // a criterion inside a query view (and rString is supposed
- // to be initially empty). In order to simplify criterion text
- // inside view, omit fieldname if it appears as 1st token.
+ // When we are building a criterion inside a query view,
+ // simplify criterion display by removing:
+ // "currentFieldName"
+ // "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))
{
sal_Bool bFilter = sal_False;