[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - dbaccess/source
Lionel Elie Mamane
lionel at mamane.lu
Mon Feb 9 02:47:13 PST 2015
dbaccess/source/ui/querydesign/QueryDesignView.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit a9cbae63a43cbdafd245eb67c09832d554f51c93
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Wed Jan 28 21:09:42 2015 +0100
not all OrCriteria have three children
and some contain a column in the second child
Change-Id: I60aca574815251902aa7dd1056903bdade9e21a1
Reviewed-on: https://gerrit.libreoffice.org/14340
Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 312395d..b2efec0 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -1304,9 +1304,11 @@ namespace
{
bool bRet = true;
::connectivity::OSQLParseNode* pFirstColumnRef = _pFirstColumnRef;
- for (int i = 0; i < 3 && bRet; i+=2)
+ for (size_t i = 0; i < _pCondition->count() && bRet; ++i)
{
const ::connectivity::OSQLParseNode* pChild = _pCondition->getChild(i);
+ if ( pChild->isToken() )
+ continue;
if ( SQL_ISRULE(pChild,search_condition) )
bRet = CheckOrCriteria(pChild,pFirstColumnRef);
else
More information about the Libreoffice-commits
mailing list