Tag: cws_ood680_dba204d
User: fs      
Date: 2006/08/15 03:37:46

Modified:
   dba/dbaccess/source/core/api/SingleSelectQueryComposer.cxx

Log:
 find cases like #i68601# easier in non-product versions

File Changes:

Directory: /dba/dbaccess/source/core/api/
=========================================

File [changed]: SingleSelectQueryComposer.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/SingleSelectQueryComposer.cxx?r1=1.15&r2=1.15.30.1
Delta lines:  +5 -4
-------------------
--- SingleSelectQueryComposer.cxx       10 Jul 2006 15:04:12 -0000      1.15
+++ SingleSelectQueryComposer.cxx       15 Aug 2006 10:37:43 -0000      
1.15.30.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: SingleSelectQueryComposer.cxx,v $
  *
- *  $Revision: 1.15 $
+ *  $Revision: 1.15.30.1 $
  *
- *  last change: $Author: obo $ $Date: 2006/07/10 15:04:12 $
+ *  last change: $Author: fs $ $Date: 2006/08/15 10:37:43 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -790,7 +790,8 @@
         typedef ::std::set< size_t > SizeTSet;
         SizeTSet aUsedSelectColumns;
 
-               sal_Int32 nCount = xResultSetMeta.is() ? 
xResultSetMeta->getColumnCount() : sal_Int32(0);
+               sal_Int32 nCount = xResultSetMeta->getColumnCount();
+        OSL_ENSURE( nCount == aSelectColumns->size(), 
"OSingleSelectQueryComposer::getColumns: inconsistent column counts, this might 
result in wrong columns!" );
                for(sal_Int32 i=1;i<=nCount;++i)
                {
                        ::rtl::OUString sName = 
xResultSetMeta->getColumnName(i);




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

Reply via email to