Kaydet (Commit) acc05351 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

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
üst 0f994fd7
...@@ -509,7 +509,19 @@ sal_Int32 OStatement_Base::getMaxRows() const throw(SQLException, RuntimeExcepti ...@@ -509,7 +509,19 @@ sal_Int32 OStatement_Base::getMaxRows() const throw(SQLException, RuntimeExcepti
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
sal_Int32 OStatement_Base::getResultSetConcurrency() const throw(SQLException, RuntimeException) 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) sal_Int32 OStatement_Base::getResultSetType() const throw(SQLException, RuntimeException)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment