User: hr Date: 06/06/19 18:13:13 Modified: /dba/connectivity/source/drivers/ado/ ADatabaseMetaDataResultSet.cxx
Log: INTEGRATION: CWS warnings01 (1.20.30); FILE MERGED 2005/12/22 11:44:33 fs 1.20.30.1: #i57457# warning-free code File Changes: Directory: /dba/connectivity/source/drivers/ado/ ================================================ File [changed]: ADatabaseMetaDataResultSet.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/ado/ADatabaseMetaDataResultSet.cxx?r1=1.20&r2=1.21 Delta lines: +76 -68 --------------------- --- ADatabaseMetaDataResultSet.cxx 8 Sep 2005 05:27:46 -0000 1.20 +++ ADatabaseMetaDataResultSet.cxx 20 Jun 2006 01:13:11 -0000 1.21 @@ -218,8 +218,9 @@ return new SequenceInputStream(m_aValue); } // ------------------------------------------------------------------------- -Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) +Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XRow::getCharacterStream", *this ); return NULL; } @@ -303,12 +304,14 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::getRow( ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XResultSet::getRow", *this ); return 0; } // ------------------------------------------------------------------------- -sal_Int64 SAL_CALL ODatabaseMetaDataResultSet::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) +sal_Int64 SAL_CALL ODatabaseMetaDataResultSet::getLong( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XRow::getLong", *this ); return sal_Int64(0); } // ------------------------------------------------------------------------- @@ -327,31 +330,35 @@ return m_xMetaData; } // ------------------------------------------------------------------------- -Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) +Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this ); return NULL; } // ------------------------------------------------------------------------- -Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) +Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this ); return NULL; } // ------------------------------------------------------------------------- -Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) +Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this ); return NULL; } // ------------------------------------------------------------------------- -Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) +Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException) { + ::dbtools::throwFeatureNotImplementedException( "XRow::getRow", *this ); return NULL; } // ------------------------------------------------------------------------- -Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(SQLException, RuntimeException) +Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed); @@ -496,8 +503,8 @@ if(!m_pRecordSet) return sal_False; - sal_Bool bRet; - if(bRet = SUCCEEDED(m_pRecordSet->MoveFirst())) + sal_Bool bRet = SUCCEEDED(m_pRecordSet->MoveFirst()); + if ( bRet ) m_nRowPos = 1; return bRet; } @@ -509,7 +516,7 @@ checkDisposed(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed ); - return m_pRecordSet ? SUCCEEDED(m_pRecordSet->MoveLast()) : sal_False; + return m_pRecordSet && SUCCEEDED(m_pRecordSet->MoveLast()) ? sal_True : sal_False; } // ------------------------------------------------------------------------- sal_Bool SAL_CALL ODatabaseMetaDataResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException) @@ -713,8 +720,9 @@ } //------------------------------------------------------------------------------ -void ODatabaseMetaDataResultSet::setFetchDirection(sal_Int32 _par0) +void ODatabaseMetaDataResultSet::setFetchDirection(sal_Int32 /*_par0*/) { + ::dbtools::throwFeatureNotImplementedException( "ResultSet::FetchDirection", *this ); } //------------------------------------------------------------------------------ void ODatabaseMetaDataResultSet::setFetchSize(sal_Int32 _par0) @@ -769,7 +777,7 @@ // ------------------------------------------------------------------------- void ODatabaseMetaDataResultSet::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, - const Any& rValue + const Any& /*rValue*/ ) throw (Exception) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
