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/AIndexes.cxx | |
parent | bbc5db1ac660640e72a7effbf70bace623c8d6c4 (diff) |
CWS-TOOLING: integrate CWS dba31b
Diffstat (limited to 'connectivity/source/drivers/ado/AIndexes.cxx')
-rw-r--r-- | connectivity/source/drivers/ado/AIndexes.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/connectivity/source/drivers/ado/AIndexes.cxx b/connectivity/source/drivers/ado/AIndexes.cxx index a57215e88cfc..c96de3ca92ef 100644 --- a/connectivity/source/drivers/ado/AIndexes.cxx +++ b/connectivity/source/drivers/ado/AIndexes.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AIndexes.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.17.56.1 $ * * This file is part of OpenOffice.org. * @@ -39,7 +39,7 @@ #include "TConnection.hxx" #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> - +#include "resource/ado_res.hrc" using namespace ::comphelper; @@ -71,19 +71,13 @@ sdbcx::ObjectType OIndexes::appendObject( const ::rtl::OUString& _rForName, cons { OAdoIndex* pIndex = NULL; if ( !getImplementation(pIndex,descriptor) || pIndex == NULL ) - ::dbtools::throwGenericSQLException( - ::rtl::OUString::createFromAscii( "Could not create index: invalid object descriptor." ), - static_cast<XTypeProvider*>(this) - ); + m_pConnection->throwGenericSQLException( STR_INVALID_INDEX_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); ADOIndexes* pIndexes = m_aCollection; if ( FAILED( pIndexes->Append( OLEVariant( _rForName ), OLEVariant( pIndex->getImpl() ) ) ) ) { ADOS::ThrowException(*m_pConnection->getConnection(),static_cast<XTypeProvider*>(this)); - ::dbtools::throwGenericSQLException( - ::rtl::OUString::createFromAscii( "Could not append index." ), - static_cast<XTypeProvider*>(this) - ); + m_pConnection->throwGenericSQLException( STR_INVALID_INDEX_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); } return new OAdoIndex(isCaseSensitive(),m_pConnection,pIndex->getImpl()); |