From c087e24c683dc402c442bb0a3dbea974000b72b2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Sep 2017 16:06:47 +0200 Subject: [PATCH] fix caching in OResultColumn this obviously never worked, because the template method was never updating the cache field, just a copy of the cache field Change-Id: Ibeed9a0f0764a4d398548c05aed466cd6cdfc266 --- dbaccess/source/core/api/resultcolumn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbaccess/source/core/api/resultcolumn.cxx b/dbaccess/source/core/api/resultcolumn.cxx index 96ce95ad646c..9691217983c8 100644 --- a/dbaccess/source/core/api/resultcolumn.cxx +++ b/dbaccess/source/core/api/resultcolumn.cxx @@ -167,7 +167,7 @@ void OResultColumn::disposing() namespace { template< typename T > - void obtain( Any& _out_rValue, ::boost::optional< T > _rCache, const sal_Int32 _nPos, const Reference < XResultSetMetaData >& _rxResultMeta, T (SAL_CALL XResultSetMetaData::*Getter)( sal_Int32 ) ) + void obtain( Any& _out_rValue, ::boost::optional< T > & _rCache, const sal_Int32 _nPos, const Reference < XResultSetMetaData >& _rxResultMeta, T (SAL_CALL XResultSetMetaData::*Getter)( sal_Int32 ) ) { if ( !_rCache ) _rCache.reset( (_rxResultMeta.get()->*Getter)( _nPos ) );