diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2016-03-21 16:11:45 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2016-03-21 16:43:16 +0100 |
commit | 57bf3a33406950b6a2a90b50e219b548b53928cf (patch) | |
tree | 5322af99168261b7a0f9ec6dc2ea5545aa97f905 /dbaccess/source | |
parent | 93e607517342cc3fa672957535570d1790058807 (diff) |
off-by-one error: columns are numbered from one, but the array from 0
Change-Id: I14ef451999fa1f9d57757a9e231fc66be4e53f3a
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index b24e44f3efca..d89fac7fe82b 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<ORowSetValueVector> aCopy(new ORowSetValueVector(*m_aParameterValueForCache.get())); |