summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2016-03-21 16:11:45 +0100
committerAndras Timar <andras.timar@collabora.com>2016-04-04 23:55:00 +0200
commit0808f3c18f48446ed86397f2b75638011070e9c2 (patch)
tree1b86ed2e39059ab70c4f56aee0f424df19af9f00 /dbaccess
parent0b4c612c5100eb8300f434b8d5d7ad5cec8bcbee (diff)
off-by-one error: columns are numbered from one, but the array from 0
Change-Id: I14ef451999fa1f9d57757a9e231fc66be4e53f3a Reviewed-on: https://gerrit.libreoffice.org/23406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 1f7af80f020a9114d7b6b4014a4ebb71cb81d8a1)
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/KeySet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 6b2400efd826..58be2f2ae20b 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -944,7 +944,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 )
{
ORowSetValueVector aCopy(m_aParameterValueForCache);