Tag: cws_src680_dba24a
User: oj      
Date: 2007-09-20 06:38:07+0000
Modified:
   dba/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx

Log:
 #i69428# check table alias name

File Changes:

Directory: /dba/dbaccess/source/ui/querydesign/
===============================================

File [changed]: SelectionBrowseBox.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx?r1=1.78.34.1&r2=1.78.34.2
Delta lines:  +4 -3
-------------------
--- SelectionBrowseBox.cxx      2007-08-28 08:34:53+0000        1.78.34.1
+++ SelectionBrowseBox.cxx      2007-09-20 06:38:05+0000        1.78.34.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: SelectionBrowseBox.cxx,v $
  *
- *  $Revision: 1.78.34.1 $
+ *  $Revision: 1.78.34.2 $
  *
- *  last change: $Author: oj $ $Date: 2007/08/28 08:34:53 $
+ *  last change: $Author: oj $ $Date: 2007/09/20 06:38:05 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1027,7 +1027,8 @@
                                                        
static_cast<OQueryController*>(getDesignView()->getController())->getUndoMgr()->EnterListAction(String(),String());
 
                                                USHORT nPos = 
m_pFieldCell->GetEntryPos(aFieldName);
-                                               if ( nPos != 
COMBOBOX_ENTRY_NOTFOUND && aFieldName.GetTokenCount('.') > 1 )
+                        String aAliasName = pEntry->GetAlias();
+                                               if ( nPos != 
COMBOBOX_ENTRY_NOTFOUND && !aAliasName.Len() && aFieldName.GetTokenCount('.') > 
1 )
                                                { // special case, we have a 
table field so we must cut the table name
                                                        String sTableAlias = 
aFieldName.GetToken(0,'.');
                                                        
pEntry->SetAlias(sTableAlias);




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

Reply via email to