Tag: cws_src680_qiq
User: fs      
Date: 06/05/15 07:22:16

Modified:
 /dba/dbaccess/source/ui/app/
  AppControllerDnD.cxx

Log:
 #i51143# display of warnings moved to the DataSourceConnector class

File Changes:

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

File [changed]: AppControllerDnD.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppControllerDnD.cxx?r1=1.14.76.3&r2=1.14.76.4
Delta lines:  +2 -26
--------------------
--- AppControllerDnD.cxx        12 May 2006 13:46:59 -0000      1.14.76.3
+++ AppControllerDnD.cxx        15 May 2006 14:22:14 -0000      1.14.76.4
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppControllerDnD.cxx,v $
  *
- *  $Revision: 1.14.76.3 $
+ *  $Revision: 1.14.76.4 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/12 13:46:59 $
+ *  last change: $Author: fs $ $Date: 2006/05/15 14:22:14 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -42,9 +42,6 @@
 #ifndef DBACCESS_SHARED_DBUSTRINGS_HRC
 #include "dbustrings.hrc"
 #endif
-#ifndef _COM_SUN_STAR_SDBC_XWARNINGSSUPPLIER_HPP_
-#include <com/sun/star/sdbc/XWarningsSupplier.hpp>
-#endif
 #ifndef _COM_SUN_STAR_SDB_XSINGLESELECTQUERYCOMPOSER_HPP_
 #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
 #endif
@@ -470,27 +467,6 @@
                m_xDataSourceConnection.reset( connect( getDatabaseName(), 
sConnectingContext, rtl::OUString(), sal_True ) );
         if ( m_xDataSourceConnection.is() )
             m_xMetaData = m_xDataSourceConnection->getMetaData();
-
-        Reference< XWarningsSupplier > xConnectionWarnings( 
m_xDataSourceConnection, UNO_QUERY );
-        if ( xConnectionWarnings.is() )
-        {
-            try
-            {
-                Any aWarnings( xConnectionWarnings->getWarnings() );
-                if ( aWarnings.hasValue() )
-                {
-                    SQLContext aContext;
-                    aContext.Message = String( ModuleRes( 
STR_WARNINGS_DURING_CONNECT ) );
-                    aContext.NextException = aWarnings;
-                    showError( SQLExceptionInfo( aContext ) );
-                }
-                xConnectionWarnings->clearWarnings();
-            }
-            catch( const Exception& )
-            {
-               DBG_UNHANDLED_EXCEPTION();
-            }
-        }
 
         // otherwise we got a loop when connecting to db throws an error
 //             if ( !m_xDataSourceConnection.is() )




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

Reply via email to