summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-08-27 18:27:58 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-08-27 18:50:17 +0200
commit1c7b0b08b2aad12fa2a295198c235d505c44e0f5 (patch)
treefe1342fd3cb355211fea05e49aef99ceb62b6a37 /connectivity
parent89c6e2327fa9fb24bf21231c5b7ab9b76bcd5099 (diff)
the place reserved for bookmark in m_aBindVector is never used
Change-Id: Iae4850739c329a7b04f8eea75047ab75465e3dea
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSet.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx
index 99c4e5775502..a0542a8c98f3 100644
--- a/connectivity/source/drivers/odbcbase/OResultSet.cxx
+++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx
@@ -211,9 +211,9 @@ SQLRETURN OResultSet::unbind(sal_Bool _bUnbindHandle)
if ( _bUnbindHandle )
nRet = N3SQLFreeStmt(m_aStatementHandle,SQL_UNBIND);
- if ( m_aBindVector.size() > 1 )
+ if ( m_aBindVector.size() > 0 )
{
- TVoidVector::iterator pValue = m_aBindVector.begin() + 1;
+ TVoidVector::iterator pValue = m_aBindVector.begin();
TVoidVector::iterator pEnd = m_aBindVector.end();
for(; pValue != pEnd; ++pValue)
{
@@ -271,7 +271,6 @@ SQLRETURN OResultSet::unbind(sal_Bool _bUnbindHandle)
}
}
m_aBindVector.clear();
- m_aBindVector.push_back(TVoidPtr(0,0)); // the first is reserved for the bookmark
}
return nRet;
}
@@ -344,8 +343,7 @@ void OResultSet::allocBuffer()
Reference< XResultSetMetaData > xMeta = getMetaData();
sal_Int32 nLen = xMeta->getColumnCount();
- m_aBindVector.reserve(nLen+1);
- m_aBindVector.push_back(TVoidPtr(0,0)); // the first is reserved for the bookmark
+ m_aBindVector.reserve(nLen);
m_aRow.resize(nLen+1);
m_aRow[0].setTypeKind(DataType::VARBINARY);