diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 12:28:29 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 12:28:29 +0000 |
commit | bc416a9f5635e0dcb3558a997ebf0298c3c37486 (patch) | |
tree | ef6424519b8c2ef24406d62b0edca6d9a572115a /connectivity/source/drivers/ado/AViews.cxx | |
parent | bbc5db1ac660640e72a7effbf70bace623c8d6c4 (diff) |
CWS-TOOLING: integrate CWS dba31b
Diffstat (limited to 'connectivity/source/drivers/ado/AViews.cxx')
-rw-r--r-- | connectivity/source/drivers/ado/AViews.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/connectivity/source/drivers/ado/AViews.cxx b/connectivity/source/drivers/ado/AViews.cxx index 8cb19e261e35..a67d30f63f2e 100644 --- a/connectivity/source/drivers/ado/AViews.cxx +++ b/connectivity/source/drivers/ado/AViews.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AViews.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.17.56.1 $ * * This file is part of OpenOffice.org. * @@ -34,13 +34,12 @@ #include "ado/AView.hxx" #include "ado/ATables.hxx" #include "ado/ACatalog.hxx" -#ifndef _CONNECTIVITY_ADO_BCONNECTION_HXX_ #include "ado/AConnection.hxx" -#endif #include "ado/Awrapado.hxx" #include "TConnection.hxx" #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> +#include "resource/ado_res.hrc" using namespace ::comphelper; @@ -75,18 +74,12 @@ sdbcx::ObjectType OViews::appendObject( const ::rtl::OUString& _rForName, const { OAdoView* pView = NULL; if ( !getImplementation( pView, descriptor ) || pView == NULL ) - ::dbtools::throwGenericSQLException( - ::rtl::OUString::createFromAscii( "Could not create view: invalid object descriptor." ), - static_cast<XTypeProvider*>(this) - ); + m_pCatalog->getConnection()->throwGenericSQLException( STR_INVALID_VIEW_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); WpADOCommand aCommand; aCommand.Create(); if ( !aCommand.IsValid() ) - ::dbtools::throwGenericSQLException( - ::rtl::OUString::createFromAscii( "Could not create view: no command object." ), - static_cast<XTypeProvider*>(this) - ); + m_pCatalog->getConnection()->throwGenericSQLException( STR_VIEW_NO_COMMAND_ERROR,static_cast<XTypeProvider*>(this) ); ::rtl::OUString sName( _rForName ); aCommand.put_Name(sName); |