Lines Matching refs:getChild
244 else if (m_pParseTree->count() == 3 && SQL_ISRULE(m_pParseTree->getChild(1),odbc_call_spec)) in setParseTree()
248 else if (SQL_ISRULE(m_pParseTree->getChild(0),base_table_def)) in setParseTree()
251 m_pParseTree = m_pParseTree->getChild(0); in setParseTree()
484 SQL_ISPUNCTUATION(i_pJoinCondition->getChild(0),"(") && in impl_fillJoinConditions()
485 SQL_ISPUNCTUATION(i_pJoinCondition->getChild(2),")")) in impl_fillJoinConditions()
487 impl_fillJoinConditions(i_pJoinCondition->getChild(1)); in impl_fillJoinConditions()
493 if ( SQL_ISTOKEN(i_pJoinCondition->getChild(1),AND) ) in impl_fillJoinConditions()
495 impl_fillJoinConditions(i_pJoinCondition->getChild(0)); in impl_fillJoinConditions()
496 impl_fillJoinConditions(i_pJoinCondition->getChild(1)); in impl_fillJoinConditions()
503 if (SQL_ISRULE(i_pJoinCondition->getChild(0),column_ref) && in impl_fillJoinConditions()
504 SQL_ISRULE(i_pJoinCondition->getChild(2),column_ref) && in impl_fillJoinConditions()
505 i_pJoinCondition->getChild(1)->getNodeType() == SQL_NODE_EQUAL) in impl_fillJoinConditions()
507 …m_aJoinConditions.push_back( TNodePair(i_pJoinCondition->getChild(0),i_pJoinCondition->getChild(2)… in impl_fillJoinConditions()
525 const OSQLParseNode* pNode = getTableNode(_rTables,pTableRef->getChild(0),aTableRange); in getQualified_join()
530 if( SQL_ISRULE(pTableRef,cross_union) || pTableRef->getChild(1)->getTokenID() != SQL_TOKEN_NATURAL) in getQualified_join()
536 const OSQLParseNode* pJoin_spec = pTableRef->getChild(4); in getQualified_join()
539 impl_fillJoinConditions(pJoin_spec->getChild(1)); in getQualified_join()
543 const OSQLParseNode* pColumnCommalist = pJoin_spec->getChild(2); in getQualified_join()
547 const OSQLParseNode * pCol = pColumnCommalist->getChild(i); in getQualified_join()
555 pNode = getTableNode(_rTables,pTableRef->getChild(nPos),aTableRange); in getQualified_join()
571 getQualified_join( _rTables, pTableRef->getChild(1), rTableRange ); in getTableNode()
584 getQualified_join( _rTables, pTableRef->getChild(6 - pTableRef->count()), rTableRange ); in getTableNode()
588 const OSQLParseNode* pSubQuery = pTableRef->getChild(0); in getTableNode()
591 getQualified_join( _rTables, pTableRef->getChild(1), rTableRange ); in getTableNode()
596 const OSQLParseNode* pQueryExpression = pSubQuery->getChild(1); in getTableNode()
609 pTableNameNode = pTableRef->getChild(0); in getTableNode()
623 getSelect_statement(_rTables,pSelect->getChild(0)); in getSelect_statement()
627 OSQLParseNode * pTableRefCommalist = pSelect->getChild(3)->getChild(0)->getChild(1); in getSelect_statement()
638 const OSQLParseNode* pTableListElement = pTableRefCommalist->getChild(i); in getSelect_statement()
646 pTableName = pTableListElement->getChild(0); in getSelect_statement()
654 getQualified_join( _rTables, pTableListElement->getChild(2), aTableRange ); in getSelect_statement()
667 getQualified_join( _rTables, pTableListElement->getChild(1), aTableRange ); in getSelect_statement()
691 pTableName = m_pParseTree->getChild(2); in traverseTableNames()
695 pTableName = m_pParseTree->getChild(1); in traverseTableNames()
715 if(_pDerivedColumn->getChild(1)->count() == 2) in getColumnAlias()
716 sColumnAlias = _pDerivedColumn->getChild(1)->getChild(1)->getTokenValue(); in getColumnAlias()
717 else if(!_pDerivedColumn->getChild(1)->isRule()) in getColumnAlias()
718 sColumnAlias = _pDerivedColumn->getChild(1)->getTokenValue(); in getColumnAlias()
735 …_pColumnRef->getChild(i)->parseNodeToStr( _out_rTableRange, _rxConnection, NULL, sal_False, sal_Fa… in lcl_getColumnRange()
736 … _out_rColumnName = _pColumnRef->getChild( _pColumnRef->count()-1 )->getChild(0)->getTokenValue(); in lcl_getColumnRange()
739 _out_rColumnName = _pColumnRef->getChild(0)->getTokenValue(); in lcl_getColumnRange()
852 if (!getColumnTableRange(pNode->getChild(i), rTableRange)) in getColumnTableRange()
875 OSQLParseNode *pColumnRef = pSelectNode->getChild(i); in traverseCreateColumns()
884 aColumnName = pColumnRef->getChild(0)->getTokenValue(); in traverseCreateColumns()
886 OSQLParseNode *pDatatype = pColumnRef->getChild(1); in traverseCreateColumns()
889 const OSQLParseNode *pType = pDatatype->getChild(0); in traverseCreateColumns()
894 const OSQLParseNode *pParams = pDatatype->getChild(pDatatype->count()-1); in traverseCreateColumns()
897 nLen = pParams->getChild(1)->getTokenValue().toInt32(); in traverseCreateColumns()
935 return traverseSelectColumnNames( pSelectNode->getChild( 0 ) ) in traverseSelectColumnNames()
941 …if (pSelectNode->getChild(2)->isRule() && SQL_ISPUNCTUATION(pSelectNode->getChild(2)->getChild(0),… in traverseSelectColumnNames()
946 else if (SQL_ISRULE(pSelectNode->getChild(2),scalar_exp_commalist)) in traverseSelectColumnNames()
949 OSQLParseNode * pSelection = pSelectNode->getChild(2); in traverseSelectColumnNames()
953 OSQLParseNode *pColumnRef = pSelection->getChild(i); in traverseSelectColumnNames()
957 SQL_ISRULE(pColumnRef->getChild(0),column_ref) && in traverseSelectColumnNames()
958 pColumnRef->getChild(0)->count() == 3 && in traverseSelectColumnNames()
959 SQL_ISPUNCTUATION(pColumnRef->getChild(0)->getChild(2),"*")) in traverseSelectColumnNames()
963 …pColumnRef->getChild(0)->parseNodeToStr( aTableRange, m_pImpl->m_xConnection, NULL, sal_False, sal… in traverseSelectColumnNames()
974 pColumnRef = pColumnRef->getChild(0); in traverseSelectColumnNames()
977 SQL_ISPUNCTUATION(pColumnRef->getChild(0),"(") && in traverseSelectColumnNames()
978 SQL_ISPUNCTUATION(pColumnRef->getChild(2),")") in traverseSelectColumnNames()
980 pColumnRef = pColumnRef->getChild(1); in traverseSelectColumnNames()
1058 traverseByColumnNames(pSelectNode->getChild(0),_bOrder); in traverseByColumnNames()
1064 OSQLParseNode * pTableExp = pSelectNode->getChild(3); in traverseByColumnNames()
1071 OSQLParseNode * pOptByClause = pTableExp->getChild(nPos); in traverseByColumnNames()
1078 OSQLParseNode * pOrderingSpecCommalist = pOptByClause->getChild(2); in traverseByColumnNames()
1088 OSQLParseNode* pColumnRef = pOrderingSpecCommalist->getChild(i); in traverseByColumnNames()
1095 pColumnRef = pColumnRef->getChild(0); in traverseByColumnNames()
1117 OSQLParseNode * pOptAscDesc = pColumnRef->getParent()->getChild(1); in traverseByColumnNames()
1144 if ( _rParentNode.getChild(i) == &_rParamNode ) in lcl_generateParameterName()
1168 if ( pParent->getChild(nPos) == _pNode ) in traverseParameters()
1170 const OSQLParseNode* pOther = pParent->getChild(nPos); in traverseParameters()
1178 const OSQLParseNode* pOther = pParent->getParent()->getChild(0); in traverseParameters()
1186 const OSQLParseNode* pOther = pParent->getParent()->getChild(0); in traverseParameters()
1204 const OSQLParseNode* pChild = _pNode->getChild(i); in traverseParameters()
1224 return traverseSelectionCriteria( pSelectNode->getChild( 0 ) ) in traverseSelectionCriteria()
1225 && traverseSelectionCriteria( pSelectNode->getChild( 3 ) ); in traverseSelectionCriteria()
1229 OSQLParseNode * pTableExp = pSelectNode->getChild(3); in traverseSelectionCriteria()
1234 pWhereClause = pTableExp->getChild(1); in traverseSelectionCriteria()
1237 pWhereClause = pSelectNode->getChild(4); in traverseSelectionCriteria()
1240 pWhereClause = pSelectNode->getChild(3); in traverseSelectionCriteria()
1259 OSQLParseNode * pComparisonPredicate = pWhereClause->getChild(1); in traverseSelectionCriteria()
1279 SQL_ISPUNCTUATION(pSearchCondition->getChild(0),"(") && in traverseORCriteria()
1280 SQL_ISPUNCTUATION(pSearchCondition->getChild(2),")") in traverseORCriteria()
1284 traverseORCriteria(pSearchCondition->getChild(1)); in traverseORCriteria()
1287 SQL_ISTOKEN(pSearchCondition->getChild(1),OR)) in traverseORCriteria()
1296 SQL_ISRULE(pSearchCondition->getChild(0),search_condition) && in traverseORCriteria()
1297 pSearchCondition->getChild(0)->count() == 3 && in traverseORCriteria()
1298 SQL_ISTOKEN(pSearchCondition->getChild(0)->getChild(1),OR)) in traverseORCriteria()
1301 traverseORCriteria(pSearchCondition->getChild(0)); in traverseORCriteria()
1305 traverseANDCriteria(pSearchCondition->getChild(i)); in traverseORCriteria()
1330 SQL_ISPUNCTUATION(pSearchCondition->getChild(0),"(") && in traverseANDCriteria()
1331 SQL_ISPUNCTUATION(pSearchCondition->getChild(2),")") in traverseANDCriteria()
1335 traverseANDCriteria(pSearchCondition->getChild(1)); in traverseANDCriteria()
1341 traverseORCriteria(pSearchCondition->getChild(0)); in traverseANDCriteria()
1346 traverseANDCriteria(pSearchCondition->getChild(2)); in traverseANDCriteria()
1352 traverseANDCriteria(pSearchCondition->getChild(0)); in traverseANDCriteria()
1357 traverseANDCriteria(pSearchCondition->getChild(2)); in traverseANDCriteria()
1363 …pSearchCondition->getChild(2)->parseNodeToStr( aValue, m_pImpl->m_xConnection, NULL, sal_False, sa… in traverseANDCriteria()
1364 traverseOnePredicate(pSearchCondition->getChild(0),aValue,pSearchCondition->getChild(2)); in traverseANDCriteria()
1372 const OSQLParseNode* pPart2 = pSearchCondition->getChild(1); in traverseANDCriteria()
1376 OSQLParseNode * pNum_value_exp = pPart2->getChild(nCurentPos); in traverseANDCriteria()
1377 OSQLParseNode * pOptEscape = pPart2->getChild(nCurentPos+1); in traverseANDCriteria()
1401 traverseOnePredicate(pSearchCondition->getChild(0),aValue,pParam); in traverseANDCriteria()
1408 const OSQLParseNode* pPart2 = pSearchCondition->getChild(1); in traverseANDCriteria()
1410 traverseORCriteria(pSearchCondition->getChild(0)); in traverseANDCriteria()
1413 OSQLParseNode* pChild = pPart2->getChild(2); in traverseANDCriteria()
1414 if ( SQL_ISRULE(pChild->getChild(0),subquery) ) in traverseANDCriteria()
1417 traverseSelectionCriteria(pChild->getChild(0)->getChild(1)); in traverseANDCriteria()
1421 pChild = pChild->getChild(1); in traverseANDCriteria()
1425 traverseANDCriteria(pChild->getChild(i)); in traverseANDCriteria()
1432 const OSQLParseNode* pPart2 = pSearchCondition->getChild(1); in traverseANDCriteria()
1434 OSL_ENSURE(SQL_ISTOKEN(pPart2->getChild(0),IS),"OSQLParseTreeIterator: error in parse tree!"); in traverseANDCriteria()
1437 traverseOnePredicate(pSearchCondition->getChild(0),aString,NULL); in traverseANDCriteria()
1443 traverseOnePredicate(pSearchCondition->getChild(0),aString,pSearchCondition->getChild(0)); in traverseANDCriteria()
1444 traverseOnePredicate(pSearchCondition->getChild(2),aString,pSearchCondition->getChild(2)); in traverseANDCriteria()
1464 OSQLParseNode * pMark = _pParseNode->getChild(0); in traverseParameter()
1477 sParameterName = _pParseNode->getChild(1)->getTokenValue(); in traverseParameter()
1481 sParameterName = _pParseNode->getChild(1)->getTokenValue(); in traverseParameter()
1492 …_pParentNode->getChild(0)->parseNodeToStr( sFunctionName, m_pImpl->m_xConnection, NULL, sal_False,… in traverseParameter()
1497 if ( _pParentNode->getChild(i) == _pParseNode ) in traverseParameter()
1500 …e = ::connectivity::OSQLParser::getFunctionParameterType( _pParentNode->getChild(0)->getTokenID(),… in traverseParameter()
1558 if ( _pParentNode->getChild(i) == _pParseNode ) in traverseParameter()
1561 …nType = ::connectivity::OSQLParser::getFunctionParameterType( pParent->getChild(0)->getTokenID(), … in traverseParameter()
1652 const OSQLParseNode* pCreateNode = m_pParseTree->getChild(4); in impl_traverse()
1963 OSQLParseNode * pTableExp = m_pParseTree->getChild(3); in getWhereTree()
1968 pWhereClause = pTableExp->getChild(1); in getWhereTree()
1973 pWhereClause = m_pParseTree->getChild(m_pParseTree->count()-1); in getWhereTree()
1993 OSQLParseNode * pTableExp = m_pParseTree->getChild(3); in getOrderTree()
1998 pOrderClause = pTableExp->getChild(ORDER_BY_CHILD_POS); in getOrderTree()
2015 OSQLParseNode * pTableExp = m_pParseTree->getChild(3); in getGroupByTree()
2020 pGroupClause = pTableExp->getChild(2); in getGroupByTree()
2036 OSQLParseNode * pTableExp = m_pParseTree->getChild(3); in getHavingTree()
2041 pHavingClause = pTableExp->getChild(3); in getHavingTree()
2060 return pNode ? pNode->getChild(1) : NULL; in getSimpleWhereTree()
2067 return pNode ? pNode->getChild(2) : NULL; in getSimpleOrderTree()
2074 return pNode ? pNode->getChild(2) : NULL; in getSimpleGroupByTree()
2081 return pNode ? pNode->getChild(1) : NULL; in getSimpleHavingTree()
2169 …_pNode->getChild(0)->getChild(0)->parseNodeToStr(sFunctionName, m_pImpl->m_xConnection, NULL, sal_… in getFunctionReturnType()
2178 …_pNode->getChild(0)->parseNodeToStr(sFunctionName, m_pImpl->m_xConnection, NULL, sal_False, sal_Fa… in getFunctionReturnType()
2182 …ULE(_pNode,general_set_fct) && (SQL_ISTOKEN(_pNode->getChild(0),MIN) || SQL_ISTOKEN(_pNode->getChi… in getFunctionReturnType()
2184 const OSQLParseNode* pValueExp = _pNode->getChild(3); in getFunctionReturnType()
2206 switch(pValueExp->getChild(0)->getTokenID() ) in getFunctionReturnType()
2221 nType = getFunctionReturnType(pValueExp->getChild(1)); in getFunctionReturnType()