diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-07-10 13:25:09 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-07-10 13:25:09 +0000 |
commit | 78a0679207684ca3a2d87492d2c9c876d8d3b5f6 (patch) | |
tree | a68a8fe4524ffe3c86c6dc48a2aff95b72b50899 /connectivity/source/drivers | |
parent | b0e8a2bc7f27dbd88886bf8fcde6e0cfbc56a1d2 (diff) |
INTEGRATION: CWS qiq (1.39.2); FILE MERGED
2006/07/04 07:13:54 fs 1.39.2.1: during #i51143#: HY000 string superseded by getStandardSQLState
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r-- | connectivity/source/drivers/dbase/DIndex.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx index 7ac92da5707f..c6b4c509729a 100644 --- a/connectivity/source/drivers/dbase/DIndex.cxx +++ b/connectivity/source/drivers/dbase/DIndex.cxx @@ -4,9 +4,9 @@ * * $RCSfile: DIndex.cxx,v $ * - * $Revision: 1.39 $ + * $Revision: 1.40 $ * - * last change: $Author: hr $ $Date: 2006-06-20 01:19:57 $ + * last change: $Author: obo $ $Date: 2006-07-10 14:25:09 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -220,7 +220,7 @@ sal_Bool ODbaseIndex::openIndexFile() { ::rtl::OUString sErrMsg = ::rtl::OUString::createFromAscii("Could not open index: "); sErrMsg += sFile; - throw SQLException(sErrMsg,*this,OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000),1000,Any()); + ::dbtools::throwGenericSQLException( sErrMsg, *this ); } } @@ -489,12 +489,10 @@ BOOL ODbaseIndex::DropImpl() if(UCBContentHelper::Exists(sPath)) { if(!UCBContentHelper::Kill(sPath)) - throw SQLException( + ::dbtools::throwGenericSQLException( ::rtl::OUString::createFromAscii("The index could not be deleted. An unknown error while accessing the file system occured."), - *m_pTable, - OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000), - 1000, - Any() + // TODO: resource + *m_pTable ); } @@ -695,7 +693,10 @@ BOOL ODbaseIndex::CreateImpl() closeImpl(); if(UCBContentHelper::Exists(sFile)) UCBContentHelper::Kill(sFile); - throw SQLException(::rtl::OUString::createFromAscii("Can not create index. Values are not unique!"),*this,OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_HY0000),1000,Any()); + ::dbtools::throwGenericSQLException( + ::rtl::OUString::createFromAscii("Can not create index. Values are not unique!"), + *this + ); } } aInsertKey.setValue(aValue); |