User: obo Date: 2006/07/10 07:25:11 Modified: dba/connectivity/source/drivers/dbase/DIndex.cxx
Log: 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 File Changes: Directory: /dba/connectivity/source/drivers/dbase/ ================================================== File [changed]: DIndex.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/dbase/DIndex.cxx?r1=1.39&r2=1.40 Delta lines: +8 -7 ------------------- --- DIndex.cxx 20 Jun 2006 01:19:57 -0000 1.39 +++ DIndex.cxx 10 Jul 2006 14:25:09 -0000 1.40 @@ -220,7 +220,7 @@ { ::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 @@ 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 @@ 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); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
