Tag: cws_dev300_dba30b
User: fs      
Date: 2008-03-17 12:33:14+0000
Modified:
   dba/connectivity/source/commontools/parameters.cxx

Log:
 #i87125# use correct property name when asking for a detail field's type

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: parameters.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/parameters.cxx?r1=1.2&r2=1.2.2.1
Delta lines:  +5 -4
-------------------
--- parameters.cxx      2008-03-05 16:42:36+0000        1.2
+++ parameters.cxx      2008-03-17 12:33:11+0000        1.2.2.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: parameters.cxx,v $
  *
- *  $Revision: 1.2 $
+ *  $Revision: 1.2.2.1 $
  *
- *  last change: $Author: kz $ $Date: 2008/03/05 16:42:36 $
+ *  last change: $Author: fs $ $Date: 2008/03/17 12:33:11 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -72,6 +72,7 @@
 #include "TConnection.hxx"
 
 #include <tools/debug.hxx>
+#include <tools/diagnose_ex.h>
 
 #include <comphelper/uno3.hxx>
 #include <comphelper/proparrhlp.hxx>
@@ -617,7 +618,7 @@
 
                                        // type and scale of the parameter field
                     sal_Int32 nParamType = DataType::VARCHAR;
-                                       OSL_VERIFY( 
xDetailField->getPropertyValue( 
OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FIELDTYPE) ) >>= 
nParamType );
+                                       OSL_VERIFY( 
xDetailField->getPropertyValue( 
OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE) ) >>= nParamType 
);
 
                     sal_Int32 nScale = 0;
                                        if ( 
xDetailField->getPropertySetInfo()->hasPropertyByName( 
OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE) ) )
@@ -645,7 +646,7 @@
         }
         catch( const Exception& )
         {
-               OSL_ENSURE( sal_False, "ParameterManager::fillLinkedParameters: 
caught an exception!" );
+            DBG_UNHANDLED_EXCEPTION();
         }
     }
 




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

Reply via email to