Kaydet (Commit) f77e2ccd authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS dba24 (1.66.10); FILE MERGED

2005/02/21 12:03:35 oj 1.66.10.4: RESYNC: (1.66-1.68); FILE MERGED
2005/02/10 17:28:55 fs 1.66.10.3: removed setResultSetType - decided to do this in the RowSet
2005/02/10 17:08:26 fs 1.66.10.2: corrected setResultSetType
2005/02/10 17:00:53 fs 1.66.10.1: #i15113# when executing the row set, care for a data-source-setting which enables defensive usage of ResultSetType and ResultSetConcurrency - IBM's Universe database didn't like our previous aggressive behaviour
üst 90e93d8c
......@@ -2,9 +2,9 @@
*
* $RCSfile: DatabaseForm.cxx,v $
*
* $Revision: 1.68 $
* $Revision: 1.69 $
*
* last change: $Author: vg $ $Date: 2005-02-17 10:41:30 $
* last change: $Author: vg $ $Date: 2005-03-10 15:59:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -1283,13 +1283,15 @@ sal_Bool ODatabaseForm::executeRowSet(ReusableMutexGuard& _rClearForNotifies, sa
restoreInsertOnlyState( );
// ensure the aggregated row set has the correct properties
sal_Int32 nConcurrency;
sal_Int32 nConcurrency = ResultSetConcurrency::READ_ONLY;
// if we have a parent, who is not positioned on a valid row
// we can't be updatable!
if (m_bSubForm && !hasValidParent())
{
// don't use any parameters if we don't have a valid parent
nConcurrency = ResultSetConcurrency::READ_ONLY;
// don't use any parameters if we don't have a valid parent
m_aParameterManager.setAllParametersNull();
// switch to "insert only" mode
......@@ -1301,10 +1303,8 @@ sal_Bool ODatabaseForm::executeRowSet(ReusableMutexGuard& _rClearForNotifies, sa
else
nConcurrency = ResultSetConcurrency::READ_ONLY;
m_xAggregateSet->setPropertyValue(PROPERTY_RESULTSET_CONCURRENCY, makeAny(nConcurrency));
sal_Int32 nResultSetType = ResultSetType::SCROLL_SENSITIVE;
m_xAggregateSet->setPropertyValue(PROPERTY_RESULTSET_TYPE, makeAny(nResultSetType));
m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_CONCURRENCY, makeAny( (sal_Int32)nConcurrency ) );
m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_TYPE, makeAny( (sal_Int32)ResultSetType::SCROLL_SENSITIVE ) );
sal_Bool bSuccess = sal_False;
try
......@@ -1417,7 +1417,7 @@ void ODatabaseForm::disposing()
}
//------------------------------------------------------------------------------
Reference< XConnection > ODatabaseForm::getConnection()
Reference< XConnection > ODatabaseForm::getConnection()
{
Reference< XConnection > xConn;
m_xAggregateSet->getPropertyValue( PROPERTY_ACTIVE_CONNECTION ) >>= xConn;
......
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