Tag: cws_src680_dba202b
User: oj      
Date: 05/12/26 22:44:45

Modified:
 /dba/connectivity/source/parse/
  sqlnode.cxx

Log:
 #129348# check if child[0] is a leaf

File Changes:

Directory: /dba/connectivity/source/parse/
==========================================

File [changed]: sqlnode.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/parse/sqlnode.cxx?r1=1.37&r2=1.37.40.1
Delta lines:  +10 -8
--------------------
--- sqlnode.cxx 8 Sep 2005 07:41:26 -0000       1.37
+++ sqlnode.cxx 27 Dec 2005 06:44:43 -0000      1.37.40.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqlnode.cxx,v $
  *
- *  $Revision: 1.37 $
+ *  $Revision: 1.37.40.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 07:41:26 $
+ *  last change: $Author: oj $ $Date: 2005/12/27 06:44:43 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -494,11 +494,13 @@
                {
                        OSL_ENSURE(0,"OSQLParseNode::likeNodeToStr Exception 
occured!");
                }                                               
-
+               if ( !m_aChilds[0]->isLeaf() )
+               {
                const OSQLParseNode* pCol = 
m_aChilds[0]->getChild(m_aChilds[0]->count()-1);
                if ((SQL_ISRULE(pCol,column_val) && 
pCol->getChild(0)->getTokenValue().equalsIgnoreAsciiCase(aFieldName)) ||
                        pCol->getTokenValue().equalsIgnoreAsciiCase(aFieldName) 
)
                        bAddName = sal_False;
+               }
        }
        
        if (bAddName)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to