Lines Matching refs:pPredicateNode
151 OOperand* OPredicateCompiler::execute(OSQLParseNode* pPredicateNode) in execute() argument
154 if (pPredicateNode->count() == 3 && // Ausdruck is geklammert in execute()
155 SQL_ISPUNCTUATION(pPredicateNode->getChild(0),"(") && in execute()
156 SQL_ISPUNCTUATION(pPredicateNode->getChild(2),")")) in execute()
158 execute(pPredicateNode->getChild(1)); in execute()
160 else if ((SQL_ISRULE(pPredicateNode,search_condition) || (SQL_ISRULE(pPredicateNode,boolean_term))) in execute()
162 pPredicateNode->count() == 3) in execute()
164 execute(pPredicateNode->getChild(0)); // Bearbeiten des linken Zweigs in execute()
165 execute(pPredicateNode->getChild(2)); // Bearbeiten des rechten Zweigs in execute()
167 if (SQL_ISTOKEN(pPredicateNode->getChild(1),OR)) // OR-Operator in execute()
172 else if (SQL_ISTOKEN(pPredicateNode->getChild(1),AND)) // AND-Operator in execute()
179 else if (SQL_ISRULE(pPredicateNode,boolean_factor)) in execute()
181 execute(pPredicateNode->getChild(1)); in execute()
184 else if (SQL_ISRULE(pPredicateNode,comparison_predicate)) in execute()
186 execute_COMPARE(pPredicateNode); in execute()
188 else if (SQL_ISRULE(pPredicateNode,like_predicate)) in execute()
190 execute_LIKE(pPredicateNode); in execute()
192 else if (SQL_ISRULE(pPredicateNode,between_predicate)) in execute()
194 execute_BETWEEN(pPredicateNode); in execute()
196 else if (SQL_ISRULE(pPredicateNode,test_for_null)) in execute()
198 execute_ISNULL(pPredicateNode); in execute()
200 else if(SQL_ISRULE(pPredicateNode,num_value_exp)) in execute()
202 execute(pPredicateNode->getChild(0)); // Bearbeiten des linken Zweigs in execute()
203 execute(pPredicateNode->getChild(2)); // Bearbeiten des rechten Zweigs in execute()
204 if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"+")) in execute()
208 else if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"-")) in execute()
215 else if(SQL_ISRULE(pPredicateNode,term)) in execute()
217 execute(pPredicateNode->getChild(0)); // Bearbeiten des linken Zweigs in execute()
218 execute(pPredicateNode->getChild(2)); // Bearbeiten des rechten Zweigs in execute()
219 if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"*")) in execute()
223 else if (SQL_ISPUNCTUATION(pPredicateNode->getChild(1),"/")) in execute()
231 …pOperand = execute_Operand(pPredicateNode); // jetzt werden nur einfache Operanden verarbeitet in execute()
237 OOperand* OPredicateCompiler::execute_COMPARE(OSQLParseNode* pPredicateNode) throw(SQLException, R… in execute_COMPARE() argument
239 DBG_ASSERT(pPredicateNode->count() == 3,"OFILECursor: Fehler im Parse Tree"); in execute_COMPARE()
241 if ( !(SQL_ISRULE(pPredicateNode->getChild(0),column_ref) || in execute_COMPARE()
242 pPredicateNode->getChild(2)->getNodeType() == SQL_NODE_STRING || in execute_COMPARE()
243 pPredicateNode->getChild(2)->getNodeType() == SQL_NODE_INTNUM || in execute_COMPARE()
244 pPredicateNode->getChild(2)->getNodeType() == SQL_NODE_APPROXNUM || in execute_COMPARE()
245 SQL_ISTOKEN(pPredicateNode->getChild(2),TRUE) || in execute_COMPARE()
246 SQL_ISTOKEN(pPredicateNode->getChild(2),FALSE) || in execute_COMPARE()
247 SQL_ISRULE(pPredicateNode->getChild(2),parameter) || in execute_COMPARE()
249 SQL_ISRULE(pPredicateNode->getChild(2),set_fct_spec) || in execute_COMPARE()
250 SQL_ISRULE(pPredicateNode->getChild(2),position_exp) || in execute_COMPARE()
251 SQL_ISRULE(pPredicateNode->getChild(2),char_substring_fct) || in execute_COMPARE()
253 SQL_ISRULE(pPredicateNode->getChild(2),fold)) ) in execute_COMPARE()
260 OSQLParseNode *pPrec = pPredicateNode->getChild(1); in execute_COMPARE()
277 execute(pPredicateNode->getChild(0)); in execute_COMPARE()
278 execute(pPredicateNode->getChild(2)); in execute_COMPARE()
285 OOperand* OPredicateCompiler::execute_LIKE(OSQLParseNode* pPredicateNode) throw(SQLException, Runti… in execute_LIKE() argument
287 DBG_ASSERT(pPredicateNode->count() == 2,"OFILECursor: Fehler im Parse Tree"); in execute_LIKE()
288 const OSQLParseNode* pPart2 = pPredicateNode->getChild(1); in execute_LIKE()
324 execute(pPredicateNode->getChild(0)); in execute_LIKE()
335 OOperand* OPredicateCompiler::execute_BETWEEN(OSQLParseNode* pPredicateNode) throw(SQLException, Ru… in execute_BETWEEN() argument
337 DBG_ASSERT(pPredicateNode->count() == 2,"OFILECursor: Fehler im Parse Tree"); in execute_BETWEEN()
339 OSQLParseNode* pColumn = pPredicateNode->getChild(0); in execute_BETWEEN()
340 const OSQLParseNode* pPart2 = pPredicateNode->getChild(1); in execute_BETWEEN()
415 OOperand* OPredicateCompiler::execute_ISNULL(OSQLParseNode* pPredicateNode) throw(SQLException, Run… in execute_ISNULL() argument
417 DBG_ASSERT(pPredicateNode->count() == 2,"OFILECursor: Fehler im Parse Tree"); in execute_ISNULL()
418 const OSQLParseNode* pPart2 = pPredicateNode->getChild(1); in execute_ISNULL()
427 execute(pPredicateNode->getChild(0)); in execute_ISNULL()
435 OOperand* OPredicateCompiler::execute_Operand(OSQLParseNode* pPredicateNode) throw(SQLException, Ru… in execute_Operand() argument
439 if (SQL_ISRULE(pPredicateNode,column_ref)) in execute_Operand()
442 if (pPredicateNode->count() == 1) in execute_Operand()
444 aColumnName = pPredicateNode->getChild(0)->getTokenValue(); in execute_Operand()
446 else if (pPredicateNode->count() == 3) in execute_Operand()
448 ::rtl::OUString aTableName = pPredicateNode->getChild(0)->getTokenValue(); in execute_Operand()
449 if(SQL_ISRULE(pPredicateNode->getChild(2),column_val)) in execute_Operand()
450 aColumnName = pPredicateNode->getChild(2)->getChild(0)->getTokenValue(); in execute_Operand()
452 aColumnName = pPredicateNode->getChild(2)->getTokenValue(); in execute_Operand()
484 else if (SQL_ISRULE(pPredicateNode,parameter)) in execute_Operand()
486 pOperand = new OOperandParam(pPredicateNode, ++m_nParamCounter); in execute_Operand()
488 else if (pPredicateNode->getNodeType() == SQL_NODE_STRING || in execute_Operand()
489 pPredicateNode->getNodeType() == SQL_NODE_INTNUM || in execute_Operand()
490 pPredicateNode->getNodeType() == SQL_NODE_APPROXNUM || in execute_Operand()
491 pPredicateNode->getNodeType() == SQL_NODE_NAME || in execute_Operand()
492 SQL_ISTOKEN(pPredicateNode,TRUE) || in execute_Operand()
493 SQL_ISTOKEN(pPredicateNode,FALSE) || in execute_Operand()
494 SQL_ISRULE(pPredicateNode,parameter)) in execute_Operand()
496 pOperand = new OOperandConst(*pPredicateNode, pPredicateNode->getTokenValue()); in execute_Operand()
498 else if((pPredicateNode->count() == 2) && in execute_Operand()
499 …(SQL_ISPUNCTUATION(pPredicateNode->getChild(0),"+") || SQL_ISPUNCTUATION(pPredicateNode->getChild(… in execute_Operand()
500 pPredicateNode->getChild(1)->getNodeType() == SQL_NODE_INTNUM) in execute_Operand()
502 ::rtl::OUString aValue(pPredicateNode->getChild(0)->getTokenValue()); in execute_Operand()
503 aValue += pPredicateNode->getChild(1)->getTokenValue(); in execute_Operand()
504 pOperand = new OOperandConst(*pPredicateNode->getChild(1), aValue); in execute_Operand()
506 …else if( SQL_ISRULE(pPredicateNode,set_fct_spec) && SQL_ISPUNCTUATION(pPredicateNode->getChild(0),… in execute_Operand()
508 const OSQLParseNode* pODBCNode = pPredicateNode->getChild(1); in execute_Operand()
536 else if( SQL_ISRULE(pPredicateNode,fold) ) in execute_Operand()
538 execute_Fold(pPredicateNode); in execute_Operand()
540 else if( SQL_ISRULE(pPredicateNode,set_fct_spec) in execute_Operand()
541 || SQL_ISRULE(pPredicateNode,position_exp) in execute_Operand()
542 || SQL_ISRULE(pPredicateNode,char_substring_fct) in execute_Operand()
545 executeFunction(pPredicateNode); in execute_Operand()
547 else if( SQL_ISRULE(pPredicateNode,length_exp) ) in execute_Operand()
549 executeFunction(pPredicateNode->getChild(0)); in execute_Operand()
616 OOperand* OPredicateCompiler::execute_Fold(OSQLParseNode* pPredicateNode) throw(SQLException, Runti… in execute_Fold() argument
618 DBG_ASSERT(pPredicateNode->count() >= 4,"OFILECursor: Fehler im Parse Tree"); in execute_Fold()
620 sal_Bool bUpper = SQL_ISTOKEN(pPredicateNode->getChild(0),UPPER); in execute_Fold()
622 execute(pPredicateNode->getChild(2)); in execute_Fold()
633 OOperand* OPredicateCompiler::executeFunction(OSQLParseNode* pPredicateNode) throw(SQLException, Ru… in executeFunction() argument
637 …OSL_ENSURE(pPredicateNode->getChild(0)->isToken(),"The first one must be the name of the function!… in executeFunction()
638 sal_Int32 nTokenId = pPredicateNode->getChild(0)->getTokenID(); in executeFunction()
678 execute(pPredicateNode->getChild(2)); in executeFunction()
813 OSQLParseNode* pList = pPredicateNode->getChild(2); in executeFunction()
883 if ( pPredicateNode->count() == 4 ) //char_substring_fct in executeFunction()
885 OSQLParseNode* pList = pPredicateNode->getChild(2); in executeFunction()
891 execute(pPredicateNode->getChild(2)); in executeFunction()
892 execute(pPredicateNode->getChild(4)); in executeFunction()
893 execute(pPredicateNode->getChild(5)->getChild(1)); in executeFunction()
900 if ( pPredicateNode->count() == 4 ) //position_exp in executeFunction()
902 OSQLParseNode* pList = pPredicateNode->getChild(2); in executeFunction()
908 execute(pPredicateNode->getChild(2)); in executeFunction()
909 execute(pPredicateNode->getChild(4)); in executeFunction()