INTEGRATION: CWS dba202b (1.37.40); FILE MERGED

2005/12/27 06:44:43 oj 1.37.40.1: #129348# check if child[0] is a leaf
This commit is contained in:
Oliver Bolte
2006-01-16 14:04:30 +00:00
parent e3a6e7e60c
commit 1c3b94c3b4

View File

@@ -4,9 +4,9 @@
* *
* $RCSfile: sqlnode.cxx,v $ * $RCSfile: sqlnode.cxx,v $
* *
* $Revision: 1.37 $ * $Revision: 1.38 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 07:41:26 $ * last change: $Author: obo $ $Date: 2006-01-16 15:04:30 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
@@ -494,12 +494,14 @@ void OSQLParseNode::likeNodeToStr(::rtl::OUString& rString, const SQLParseNodePa
{ {
OSL_ENSURE(0,"OSQLParseNode::likeNodeToStr Exception occured!"); OSL_ENSURE(0,"OSQLParseNode::likeNodeToStr Exception occured!");
} }
if ( !m_aChilds[0]->isLeaf() )
{
const OSQLParseNode* pCol = m_aChilds[0]->getChild(m_aChilds[0]->count()-1); const OSQLParseNode* pCol = m_aChilds[0]->getChild(m_aChilds[0]->count()-1);
if ((SQL_ISRULE(pCol,column_val) && pCol->getChild(0)->getTokenValue().equalsIgnoreAsciiCase(aFieldName)) || if ((SQL_ISRULE(pCol,column_val) && pCol->getChild(0)->getTokenValue().equalsIgnoreAsciiCase(aFieldName)) ||
pCol->getTokenValue().equalsIgnoreAsciiCase(aFieldName) ) pCol->getTokenValue().equalsIgnoreAsciiCase(aFieldName) )
bAddName = sal_False; bAddName = sal_False;
} }
}
if (bAddName) if (bAddName)
m_aChilds[0]->parseNodeToStr(rString, aNewParam); m_aChilds[0]->parseNodeToStr(rString, aNewParam);