diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-11-05 14:06:12 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-11-05 14:23:23 +0100 |
commit | acc0535133c571642a9a1e3025255f34873f1699 (patch) | |
tree | 73bdfb67c57cc5e55d3abd35c06e5d137e27aad7 /connectivity | |
parent | 0f994fd7024fd44ef0c7e2e30d30b346ae767b3b (diff) |
ADO getRSConcurr(): translate ADO LockTypeEnum into our css::sdbc::RSConcurr
That code was there since the beginning, but unreachable.
Consequent cleanup removed it.
Change-Id: I2564038ce58d7aff3860f154acac37266c155146
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/ado/AStatement.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/connectivity/source/drivers/ado/AStatement.cxx b/connectivity/source/drivers/ado/AStatement.cxx index 6e97e8ebd729..0d042d84f2e7 100644 --- a/connectivity/source/drivers/ado/AStatement.cxx +++ b/connectivity/source/drivers/ado/AStatement.cxx @@ -509,7 +509,19 @@ sal_Int32 OStatement_Base::getMaxRows() const throw(SQLException, RuntimeExcepti //------------------------------------------------------------------------------ sal_Int32 OStatement_Base::getResultSetConcurrency() const throw(SQLException, RuntimeException) { - return m_eLockType; + sal_Int32 nValue; + + switch(m_eLockType) + { + case adLockReadOnly: + nValue = ResultSetConcurrency::READ_ONLY; + break; + default: + nValue = ResultSetConcurrency::UPDATABLE; + break; + } + + return nValue; } //------------------------------------------------------------------------------ sal_Int32 OStatement_Base::getResultSetType() const throw(SQLException, RuntimeException) |