From cd8855b8ddf7a1c4ea13851eb9e97e95dbcdbe3b Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Mon, 21 Mar 2016 16:11:45 +0100 Subject: off-by-one error: columns are numbered from one, but the array from 0 Change-Id: I14ef451999fa1f9d57757a9e231fc66be4e53f3a Reviewed-on: https://gerrit.libreoffice.org/23405 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- dbaccess/source/core/api/KeySet.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 5b108c823ce3..1e56823395f8 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -842,7 +842,7 @@ void OKeySet::copyRowValue(const ORowSetRow& _rInsertRow,ORowSetRow& _rKeyRow,sa for(sal_Int32 i = 1;aParaIter != aParaEnd;++aParaIter,++aParaValuesIter,++i) { ORowSetValue aValue(*aParaValuesIter); - aValue.setSigned(m_aSignedFlags[aParaIter->second.nPosition]); + aValue.setSigned(m_aSignedFlags[aParaIter->second.nPosition-1]); if ( (_rInsertRow->get())[aParaIter->second.nPosition] != aValue ) { rtl::Reference aCopy(new ORowSetValueVector(*m_aParameterValueForCache.get())); -- cgit