diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.cxx | 5 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrow.cxx | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index c45410bef37b..abf29aa1e12b 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -2118,10 +2118,9 @@ Any SAL_CALL CachedContentResultSet } //@todo: pay attention to typeMap const Any& rValue = m_aCache.getAny( nRow, columnIndex ); - Any aRet; m_bLastReadWasFromCache = true; - m_bLastCachedReadWasNull = !( rValue >>= aRet ); - return aRet; + m_bLastCachedReadWasNull = !rValue.hasValue(); + return rValue; } //virtual diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx index aafeca501bee..370906239bbe 100644 --- a/ucb/source/ucp/file/filrow.cxx +++ b/ucb/source/ucp/file/filrow.cxx @@ -307,9 +307,9 @@ XRow_impl::getObject( { if( columnIndex < 1 || columnIndex > m_aValueMap.getLength() ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); - uno::Any Value; osl::MutexGuard aGuard( m_aMutex ); - m_nWasNull = ::convert<uno::Any>( m_pMyShell,m_xTypeConverter,m_aValueMap[ --columnIndex ],Value ); + uno::Any Value = m_aValueMap[columnIndex - 1]; + m_nWasNull = !Value.hasValue(); return Value; } |