summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-11-26 06:48:16 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-11-26 06:56:50 +0100
commitffdd9120403de0ff892fcc5e112de757c63e7630 (patch)
tree4c89b73c4c5b06ec4d3a0094bcdfd98af16bf63a /connectivity
parent25156680b5228bf72d4061e9052d15518c638418 (diff)
Assert that length of bookmark has not changed after editing line
TODO actually handle such a change Change-Id: I1cd6b92a44d50e95c5d1408a01962d49a0ab3e83
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSet.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx
index 96d7d8ee4672..4a04f0647c8e 100644
--- a/connectivity/source/drivers/odbcbase/OResultSet.cxx
+++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx
@@ -924,6 +924,8 @@ void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
&nRealLen
);
fillNeededData(nRet = N3SQLBulkOperations(m_aStatementHandle, SQL_UPDATE_BY_BOOKMARK));
+ // LEM TODO: need to allow for change of not only bookmark value, but also bookmark length
+ assert(nRealLen == m_aBookmark.getLength());
}
else
fillNeededData(nRet = N3SQLSetPos(m_aStatementHandle,1,SQL_UPDATE,SQL_LOCK_NO_CHANGE));