Lines Matching refs:getChild
282 pCondition->getChild(i)->parseNodeToPredicateStr(aCondition, in ParseCondition()
300 const ::connectivity::OSQLParseNode* pParseNode = pTableRefList->getChild(i); in FillOuterJoins()
307 pJoinNode = pParseNode->getChild(2); in FillOuterJoins()
612 SQL_ISPUNCTUATION(pNode->getChild(0),"(") && in InsertJoinConnection()
613 SQL_ISPUNCTUATION(pNode->getChild(2),")")) in InsertJoinConnection()
615 eErrorCode = InsertJoinConnection(_pView,pNode->getChild(1), _eJoinType,pLeftTable,pRightTable); in InsertJoinConnection()
621 if (!SQL_ISTOKEN(pNode->getChild(1),AND)) in InsertJoinConnection()
623 …else if ( eOk == (eErrorCode = InsertJoinConnection(_pView,pNode->getChild(0), _eJoinType,pLeftTab… in InsertJoinConnection()
624 … eErrorCode = InsertJoinConnection(_pView,pNode->getChild(2), _eJoinType,pLeftTable,pRightTable); in InsertJoinConnection()
630 if (!(SQL_ISRULE(pNode->getChild(0),column_ref) && in InsertJoinConnection()
631 SQL_ISRULE(pNode->getChild(2),column_ref) && in InsertJoinConnection()
632 pNode->getChild(1)->getNodeType() == SQL_NODE_EQUAL)) in InsertJoinConnection()
641 if ( eOk != ( eErrorCode = FillDragInfo(_pView,pNode->getChild(0),aDragLeft)) || in InsertJoinConnection()
642 eOk != ( eErrorCode = FillDragInfo(_pView,pNode->getChild(2),aDragRight))) in InsertJoinConnection()
869 pParseNode->getChild(node)->parseNodeToStr( sHavingStr, in GenerateCriterias()
1257 pParseNode->getChild(0)->parseNodeToStr( sGroupBy, in GenerateGroupBy()
1306 pNode = pNode ? pNode->getChild(3)->getChild(1) : NULL; in GetSelectionCriteria()
1313 ::connectivity::OSQLParseNode * pCondition = pNode->getChild(1); in GetSelectionCriteria()
1319 ::connectivity::OSQLParseNode *pNodeTmp = pNode->getChild(1); in GetSelectionCriteria()
1322 pNodeTmp = pNode->getChild(1); in GetSelectionCriteria()
1324 pNodeTmp = pNode->getChild(1); in GetSelectionCriteria()
1327 pNodeTmp = pNode->getChild(1); in GetSelectionCriteria()
1333 pNodeTmp = pNode->getChild(1); in GetSelectionCriteria()
1366 SQL_ISPUNCTUATION(pCondition->getChild(0),"(") && in GetORCriteria()
1367 SQL_ISPUNCTUATION(pCondition->getChild(2),")")) in GetORCriteria()
1369 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pCondition->getChild(1),nLevel,bHaving,bAddOrOnOn… in GetORCriteria()
1377 const ::connectivity::OSQLParseNode* pChild = pCondition->getChild(i); in GetORCriteria()
1400 const ::connectivity::OSQLParseNode* pChild = _pCondition->getChild(i); in CheckOrCriteria()
1434 const ::connectivity::OSQLParseNode* pSearchCondition = pCondition->getChild(1); in GetANDCriteria()
1439 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(0), nLevel,bHaving,bMu… in GetANDCriteria()
1441 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(2), nLevel,bHaving,bMu… in GetANDCriteria()
1450 …eErrorCode = GetANDCriteria(_pView,_pSelectionBrw,pCondition->getChild(0), nLevel,bHaving,bAddOrOn… in GetANDCriteria()
1452 …eErrorCode = GetANDCriteria(_pView,_pSelectionBrw,pCondition->getChild(2), nLevel,bHaving,bAddOrOn… in GetANDCriteria()
1460 const ::connectivity::OSQLParseNode* pValueExp = pCondition->getChild(0); in GetANDCriteria()
1519 if ( SQL_ISRULEOR2(pCondition->getChild(0), set_fct_spec , general_set_fct ) ) in GetANDCriteria()
1528 else if ( SQL_ISRULE(pCondition->getChild(0), column_ref ) ) in GetANDCriteria()
1533 if ( eOk == ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(0),aDragLeft)) ) in GetANDCriteria()
1548 pCondition->getChild(0)->parseNodeToPredicateStr(sName, in GetANDCriteria()
1591 OSQLParseNode* pFunction = pCondition->getChild(0); in AddFunctionCondition()
1634 OSQLParseNode* pParamNode = pFunction->getChild(pFunction->count()-2); in AddFunctionCondition()
1693 if ( SQL_ISRULE(pCondition->getChild(0), column_ref ) in ComparisonPredicate()
1694 || SQL_ISRULE(pCondition->getChild(pCondition->count()-1), column_ref) ) in ComparisonPredicate()
1699 …if ( SQL_ISRULE(pCondition->getChild(0), column_ref ) && SQL_ISRULE(pCondition->getChild(pConditio… in ComparisonPredicate()
1702 if (eOk != ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(0),aDragLeft)) || in ComparisonPredicate()
1703 eOk != ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(2),aDragRight))) in ComparisonPredicate()
1727 if(SQL_ISRULE(pCondition->getChild(0), column_ref )) in ComparisonPredicate()
1733 if (pCondition->getChild(i)->getNodeType() == SQL_NODE_EQUAL) in ComparisonPredicate()
1743 else if( SQL_ISRULE(pCondition->getChild(pCondition->count()-1), column_ref ) ) in ComparisonPredicate()
1748 switch (pCondition->getChild(i)->getNodeType()) in ComparisonPredicate()
1784 pCondition->getChild(i)->parseNodeToPredicateStr(aCondition, in ComparisonPredicate()
1795 if( eOk == ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(nPos),aDragLeft))) in ComparisonPredicate()
1802 else if( SQL_ISRULEOR2(pCondition->getChild(0), set_fct_spec , general_set_fct ) ) in ComparisonPredicate()
1815 ::connectivity::OSQLParseNode *pLhs = pCondition->getChild(0); in ComparisonPredicate()
1816 ::connectivity::OSQLParseNode *pRhs = pCondition->getChild(2); in ComparisonPredicate()
1826 aCondition = pCondition->getChild(1)->getTokenValue(); in ComparisonPredicate()
1915 && SQL_ISPUNCTUATION(_pNode->getChild(0),"(") in checkJoinConditions()
1916 && SQL_ISPUNCTUATION(_pNode->getChild(2),")") ) // '(' joined_table ')' in checkJoinConditions()
1917 pJoinNode = _pNode->getChild(1); in checkJoinConditions()
1933 return InsertJoin(_pView,pNode->getChild(1)); in InsertJoin()
1936 const ::connectivity::OSQLParseNode* pRightTableRef = pNode->getChild(3); // table_ref in InsertJoin()
1937 if ( SQL_ISRULE(pNode, qualified_join) && SQL_ISTOKEN(pNode->getChild(1),NATURAL) ) in InsertJoin()
1938 pRightTableRef = pNode->getChild(4); // table_ref in InsertJoin()
1940 …if ( !checkJoinConditions(_pView,pNode->getChild(0)) || !checkJoinConditions(_pView,pRightTableRef… in InsertJoin()
1949 ::connectivity::OSQLParseNode* pJoinType = pNode->getChild(1); // join_type in InsertJoin()
1953 pJoinType = pNode->getChild(2); in InsertJoin()
1956 …if (SQL_ISRULE(pJoinType,join_type) && (!pJoinType->count() || SQL_ISTOKEN(pJoinType->getChild(0),… in InsertJoin()
1963 pJoinType = pJoinType->getChild(0); in InsertJoin()
1965 if (SQL_ISTOKEN(pJoinType->getChild(0),LEFT)) in InsertJoin()
1967 else if(SQL_ISTOKEN(pJoinType->getChild(0),RIGHT)) in InsertJoin()
1972 if ( SQL_ISRULE(pNode->getChild(4),join_condition) ) in InsertJoin()
1974 …if ( InsertJoinConnection(_pView,pNode->getChild(4)->getChild(1), eJoinType,pNode->getChild(0),pRi… in InsertJoin()
1981 pRightTableRef = pNode->getChild(pNode->count() - 1); in InsertJoin()
1989 …t<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pNode->getChild(0)) ); in InsertJoin()
2060 const OSQLParseNode* pTableExp = pParseTree->getChild(3); in InitFromParseNodeImpl()
2061 …if ( pTableExp->getChild(6)->count() > 0 || pTableExp->getChild(7)->count() > 0 || pTableExp->getC… in InitFromParseNodeImpl()
2148 if ( eOk == (eErrorCode = FillOuterJoins(_pView,pTableExp->getChild(0)->getChild(1))) ) in InitFromParseNodeImpl()
2151 if(SQL_ISTOKEN(pParseTree->getChild(1),DISTINCT)) in InitFromParseNodeImpl()
2221 ::connectivity::OSQLParseNode* pParseTree = pNode->getChild(2); // selection in InstallFields()
2226 if ( pParseTree->isRule() && SQL_ISPUNCTUATION(pParseTree->getChild(0),"*") ) in InstallFields()
2240 ::connectivity::OSQLParseNode * pColumnRef = pParseTree->getChild(i); in InstallFields()
2253 pColumnRef = pColumnRef->getChild(0); in InstallFields()
2257 SQL_ISPUNCTUATION(pColumnRef->getChild(0),"(") && in InstallFields()
2258 SQL_ISPUNCTUATION(pColumnRef->getChild(2),")") in InstallFields()
2260 pColumnRef = pColumnRef->getChild(1); in InstallFields()
2290 pParamRef = pColumnRef->getChild(nColumnRefPos); in InstallFields()
2403 if (!pParseRoot->getChild(3)->getChild(4)->isLeaf()) in GetOrderCriteria()
2405 ::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(4)->getChild(2); in GetOrderCriteria()
2414 ::connectivity::OSQLParseNode* pChild = pNode->getChild( i ); in GetOrderCriteria()
2416 if (SQL_ISTOKEN( pChild->getChild(1), DESC ) ) in GetOrderCriteria()
2419 ::connectivity::OSQLParseNode* pArgument = pChild->getChild(0); in GetOrderCriteria()
2443 SQL_ISRULE(pParamRef = pArgument->getChild(pArgument->count()-2),column_ref) && in GetOrderCriteria()
2481 if (!pSelectRoot->getChild(3)->getChild(3)->isLeaf()) in GetHavingCriteria()
2482 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSelectRoot->getChild(3)->getChild(3)->getChild(1… in GetHavingCriteria()
2491 if (!pSelectRoot->getChild(3)->getChild(2)->isLeaf()) // opt_group_by_clause in GetGroupCriteria()
2494 ::connectivity::OSQLParseNode* pGroupBy = pSelectRoot->getChild(3)->getChild(2)->getChild(2); in GetGroupCriteria()
2500 ::connectivity::OSQLParseNode* pArgument = pGroupBy->getChild( i ); in GetGroupCriteria()
2510 SQL_ISRULE(pParamRef = pArgument->getChild(pArgument->count()-2),column_ref) && in GetGroupCriteria()
3038 OSQLParseNode* pNode = pParseNode->getChild(3)->getChild(1); in getStatement()
3041 ::connectivity::OSQLParseNode * pCondition = pNode->getChild(1); in getStatement()
3285 OSQLParseNode* pFunctionName = pNode->getChild(0); in fillFunctionInfo()
3289 pFunctionName = pFunctionName->getChild(0); in fillFunctionInfo()