Lines Matching refs:pSelectNode
860 void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNode) in traverseCreateColumns() argument
865 if (!pSelectNode || m_eStatementType != SQL_STATEMENT_CREATE_TABLE || m_pImpl->m_pTables->empty()) in traverseCreateColumns()
870 if (!SQL_ISRULE(pSelectNode,base_table_element_commalist)) in traverseCreateColumns()
873 for (sal_uInt32 i = 0; i < pSelectNode->count(); i++) in traverseCreateColumns()
875 OSQLParseNode *pColumnRef = pSelectNode->getChild(i); in traverseCreateColumns()
921 bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSelectNode) in traverseSelectColumnNames() argument
927 if (!pSelectNode || m_eStatementType != SQL_STATEMENT_SELECT || m_pImpl->m_pTables->empty()) in traverseSelectColumnNames()
933 if(SQL_ISRULE(pSelectNode,union_statement)) in traverseSelectColumnNames()
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()
1032 bool OSQLParseTreeIterator::traverseOrderByColumnNames(const OSQLParseNode* pSelectNode) in traverseOrderByColumnNames() argument
1035 traverseByColumnNames( pSelectNode, sal_True ); in traverseOrderByColumnNames()
1039 void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNode,sal_Bool _bOrder) in traverseByColumnNames() argument
1044 if (pSelectNode == NULL) in traverseByColumnNames()
1056 if(SQL_ISRULE(pSelectNode,union_statement)) in traverseByColumnNames()
1058 traverseByColumnNames(pSelectNode->getChild(0),_bOrder); in traverseByColumnNames()
1062 OSL_ENSURE(pSelectNode->count() >= 4,"OSQLParseTreeIterator: error in parse tree!"); in traverseByColumnNames()
1064 OSQLParseNode * pTableExp = pSelectNode->getChild(3); in traverseByColumnNames()
1128 bool OSQLParseTreeIterator::traverseGroupByColumnNames(const OSQLParseNode* pSelectNode) in traverseGroupByColumnNames() argument
1131 traverseByColumnNames( pSelectNode, sal_False ); in traverseGroupByColumnNames()
1209 bool OSQLParseTreeIterator::traverseSelectionCriteria(const OSQLParseNode* pSelectNode) in traverseSelectionCriteria() argument
1212 if ( pSelectNode == NULL ) in traverseSelectionCriteria()
1222 if(SQL_ISRULE(pSelectNode,union_statement)) in traverseSelectionCriteria()
1224 return traverseSelectionCriteria( pSelectNode->getChild( 0 ) ) in traverseSelectionCriteria()
1225 && traverseSelectionCriteria( pSelectNode->getChild( 3 ) ); in traverseSelectionCriteria()
1227 OSL_ENSURE(pSelectNode->count() >= 4,"OSQLParseTreeIterator: error in parse tree!"); in traverseSelectionCriteria()
1229 OSQLParseNode * pTableExp = pSelectNode->getChild(3); in traverseSelectionCriteria()
1235 } else if (SQL_ISRULE(pSelectNode,update_statement_searched)) { in traverseSelectionCriteria()
1236 OSL_ENSURE(pSelectNode->count() == 5,"OSQLParseTreeIterator: error in parse tree!"); in traverseSelectionCriteria()
1237 pWhereClause = pSelectNode->getChild(4); in traverseSelectionCriteria()
1238 } else if (SQL_ISRULE(pSelectNode,delete_statement_searched)) { in traverseSelectionCriteria()
1239 OSL_ENSURE(pSelectNode->count() == 4,"OSQLParseTreeIterator: error in parse tree!"); in traverseSelectionCriteria()
1240 pWhereClause = pSelectNode->getChild(3); in traverseSelectionCriteria()
1241 } else if (SQL_ISRULE(pSelectNode,delete_statement_positioned)) { in traverseSelectionCriteria()
1638 const OSQLParseNode* pSelectNode = m_pParseTree; in impl_traverse() local
1639 traverseParameters( pSelectNode ); in impl_traverse()
1640 if ( !traverseSelectColumnNames( pSelectNode ) in impl_traverse()
1641 || !traverseOrderByColumnNames( pSelectNode ) in impl_traverse()
1642 || !traverseGroupByColumnNames( pSelectNode ) in impl_traverse()
1643 || !traverseSelectionCriteria( pSelectNode ) in impl_traverse()