diff options
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryDesignView.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index af315749012d..3b0fec6e836d 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -2917,13 +2917,10 @@ std::unique_ptr<OSQLParseNode> OQueryDesignView::getPredicateTreeFromEntry(const // we have a function here so we have to distinguish the type of return vOUalue OUString sFunction; if ( pEntry->isNumericOrAggreateFunction() ) - sFunction = pEntry->GetFunction(); + sFunction = pEntry->GetFunction().getToken(0, '('); if ( sFunction.isEmpty() ) - sFunction = pEntry->GetField(); - - if (sFunction.indexOf('(')>=0) // sFunctions has at least 2 tokens - sFunction = sFunction.getToken(0,'('); // this should be the name of the function + sFunction = pEntry->GetField().getToken(0, '('); sal_Int32 nType = ::connectivity::OSQLParser::getFunctionReturnType(sFunction,&rParser.getContext()); if ( nType == DataType::OTHER || (sFunction.isEmpty() && pEntry->isNumericOrAggreateFunction()) ) |